Version 13 oddities

Sep 17, 2011
11
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.
 
May 20, 2008
11,520
102
Syracuse, NY, USA
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?
 
May 20, 2008
11,520
102
Syracuse, NY, USA
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").
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
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.

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 /=.

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

No, there's no support for that in the compression library we're using.
 
May 20, 2008
11,520
102
Syracuse, NY, USA
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...
 
May 24, 2010
855
0
Northlake, Il
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.
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...
 
Sep 17, 2011
11
0
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 /=.

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.



No, there's no support for that in the compression library we're using.
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.
 
May 24, 2010
855
0
Northlake, Il
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.
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.)
 
Sep 17, 2011
11
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.)

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.
 
Similar threads
Thread starter Title Forum Replies Date
D Version 28 LIBRARY changes have side effects Support 3
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 9
D Documentation WebHelp lands at version 26 Support 4
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) [SOLVED] Support 1
S Issues with version v26.02.42 x64 Support 0
Joe Caverly Documentation COMMANDS in Version 27 help Support 8
C version help Support 3
R Inconsistency in @version's use of quotes Support 2
thorntonpg What is the latest version of everything Support 1
S Windows Server version not being detected correctly in TCMD 26RC2 Support 9
D Which is the latest version for Windows XP? Support 2
gentzel "Check for Updates" appears to be checking for old version Support 2
D Fixed @VERSION does not increment pre-fixed version numbers. Support 1
nikbackm TCMD 25 - Unregister older TCMD version Support 2
Stefan Hassel Installation file TC 24.02 Build 47 is actually version 25.00.1 Support 10
Joe Caverly What version and Windows OS are you using? Support 3
Dmitry L. Kobyakov From old version: had the setup's error been corrected? Support 6
R How to? Compare executables' version/build # including 123.456.789.01 Support 10
RChrismon How to? Copy TCMD.INI to New Version Support 7
vefatica Windows 10 version number? Support 6
H @ceiling @floor @int not working version 21.01.63 Support 9
B Everything version in Take Command build 39? Support 3
G Version 20.11 installed on Windows 10 problems Support 9
M ANSI is used to show files instead of OEM in version 17 to 19 ! Support 5
E How to? Create a portable version of TCMD to use on other computers w/o installation Support 4
C 21b47 version[] Support 4
fishman@panix.com Version 21.23 fails to install Support 4
E Fixed View command broken in version 21.0 build 22 Support 9
rconn News Take Command + TCC + TCC-RT Version 21 Public Beta (RC1) Support 0
R How to? Not have RT version show on start Support 3
Roedy WAD Version number Support 1
Craig Fitzgerald problem with executable extensons with TCC version 19.10.51 x64 Support 3
Jesse Heines How to? Everything Tool Not Working After Version 20 Installation Support 8
T Portable instructions for version 19 Support 7
cgunhouse Version 19.00.23 Crashes Support 16
vefatica Updater says wrong version Support 1
Sande Nissen TCC/LE version? Support 6
Mordachai Upgrades - can I skip version(s)? Support 2
D Version 18 changed the naming convention of TC's folder Support 5
D Started suggestions, not in this version (yet?) Support 1
fishman@panix.com How about updating the version shown when you upload a new one? Support 4
Joe Caverly PLUGINs and Version 17.0 Support 4
C Is 17.00.55 same as release version? Support 3
Jay Sage Version 17 Installer Leaves Multiple Copies of ShrAlias Support 48
M How to? Start the version of Take Command that I want... Support 7
B Help file problem with version 16 Support 2
T "Checking for a newer version" doesn't complete Support 18
Dan Glynhampton Fixed @version "force" flag not working, and unable to set separator Support 3
J Required version for Windows 8.1? Support 2

Similar threads