1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Version 13 oddities

Discussion in 'Support' started by TedM, Sep 17, 2011.

  1. TedM

    Joined:
    Sep 17, 2011
    Messages:
    7
    Likes Received:
    0
    I just upgraded to TCC 13 from version 11. I notice that the new /= option does not work with DIR, COPY, or MOVE, even though the help file says that's a valid option. But /= does bring up a dialogue box with ZIP, UNZIP, VIEW, and ATTRIB.

    With DIR /= I get the message TCC: (Sys) The parameter is incorrect. "=". With COPY and MOVE I get the message TCC: (Sys) The system cannot find the file specified. "C:\="

    Also, is there a way to get UNGZIP to extract files to Standard Output? I've been using an external gzip in a batch file that unpacks log files from my Web site for analysis, and it has a switch that sends output to standard output. I'd like to replace that program with the internal UNGZIP.
     
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,972
    Likes Received:
    30
    On Sat, 17 Sep 2011 21:11:51 -0400, TedM <> wrote:

    |With DIR /= I get the message TCC: (Sys) The parameter is incorrect. "=". With COPY and MOVE I get the message TCC: (Sys) The system cannot find the file specified. "C:\="

    Do you have those three commands aliased?
     
  3. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,972
    Likes Received:
    30
    On Sat, 17 Sep 2011 21:11:51 -0400, TedM <> wrote:

    |Also, is there a way to get UNGZIP to extract files to Standard Output?

    I don't think so.

    But just in case I tried

    Code:
    v:\> ungzip test.gz con *
    => V:\123.txt
    
    v:\> ungzip test.gz garbage *
    => V:\123.txt
    It completely ignored the (non-existent) path specs and unzipped to the current
    directory. I would expect an error message.

    And the help (and quick help) suggest that "path" and "file" are required. They
    don't seem to be required (and would even seem meaningless with "/V").
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,870
    Likes Received:
    83
    Then you've either aliased DIR, COPY, and MOVE, or you have plugin replacements.

    If you don't want to change your aliases, you'll have to use TCDIALOG instead of /=.

    No, there's no support for that in the compression library we're using.
     
  5. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,870
    Likes Received:
    83
    Path is optional (as the help says). There is no such argument as "file".
     
  6. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,972
    Likes Received:
    30
    On Sat, 17 Sep 2011 23:16:34 -0400, rconn <> wrote:

    |---Quote---
    |> And the help (and quick help) suggest that "path" and "file" are required.
    |---End Quote---
    |Path is optional (as the help says). There is no such argument as "file".

    There is in the quick help.

    Code:
    UNGZIP [/E /O /Q /V] gziparchive path file...
     
  7. mathewsdw

    Joined:
    May 24, 2010
    Messages:
    855
    Likes Received:
    0
    Forgive me if this is stating the obvious, but there is a fairly simple way to get what you want. Simply:
    HTML:
    :: What it says...
    @Echo Off
    :: To avoid "messing up" the "global" environment...
    SetLocal                               
    : Create a "temporary" file...
    Set TransferFile="%@Unique[%TEMP].txt"
    :: Write the output of the UnGZip command to the temporary file...
    UnGZip >!%TransferFile
    :: The command you want to "follow" UnGZip
    WhateverCommandYouWantToProcessTheOutputOfUnGZIP <%TransferFile
    :: "Clean up" the "temporary" file...
    Del %TransferFile >NUL:
    :: Almost certainly unneeded, "harmless" documentation, I suppose...
    EndLocal
    :: What it says... ; > ) >
    Quit 0
    
    I don't think there's much more to say here...
     
  8. TedM

    Joined:
    Sep 17, 2011
    Messages:
    7
    Likes Received:
    0
    That's exactly what caused the problem! I've had COPY and MOVE aliased with /r and DIR aliased with "*dir /Ou /H" since the 4DOS days, so I didn't even think of that. I suspect I'll end up using the TCDIALOG approach (with a less cumbersome alias) rather than changing the ancient aliases.



    Is that a bug or a feature? I could use a temporary file as someone else here suggested, but I think it's easier to keep using the external GZip.
     
  9. mathewsdw

    Joined:
    May 24, 2010
    Messages:
    855
    Likes Received:
    0
    Ted, I don't think that it's really relevant here, but Rex's ZIP command does a noticeably better job at "compressing" than any other ZIP program I've encountered to date. (I tried all of the ones I have (4 or 5 as I remember), and, again, his did the best job overall.)
     
  10. TedM

    Joined:
    Sep 17, 2011
    Messages:
    7
    Likes Received:
    0
    That's not directly relevant, since I was talking about uncompressing GZipped log files from my Web site. But I'll give the new compression options a try. When I compared the ZIP from version 11 with a Zip utility that had compression settings, the latter at maximum was better. I'll have to try the new ZIP at maximum compression.
     
  11. David Marcus

    Joined:
    Jun 4, 2008
    Messages:
    648
    Likes Received:
    1
    How is that different from "ungzip foo | WhateverCommandYouWantToProcessTheOutputOfUnGZIP" ? Only the name of the file gets passed to the command.
     
  12. mathewsdw

    Joined:
    May 24, 2010
    Messages:
    855
    Likes Received:
    0
    Dave, you are absolutely correct!!!! DUH!!!!!!!!!!!!!! ; > ) >
     

Share This Page