- Jun
- 121
- 0
Hi
Has MOVE changed between 4NT 8.02 and TCC 9.02?
For space purposes on a Network drive, I have a batch file which unzips ZIP files and re-ZIPs them using maximal compression, placing them back they started, savign a small amount of space.
It looks like
>>>>>>>>>
for %a in (B2007*.Z) do (wzunzip %a C: & wzzip -ex -m C:%a C:*.* & move /Z C:%a m:)
>>>>>>>>>
Now this works under 4NT 8.02, it fails under TCC 9.02.
(The original ZIP files have a Z extension and have the read-only attribute set).
What I have determined is that the MOVE command
MOVE /Z C:B20070101.BR2.Z M:
is working for 4NT 8.02 but failing for TCC 9.02
I get "Access denied". MOVE is not honoring the /Z switch
If I remove the read-only attribute on the destination, MOVE then works for TCC 9.02.
In constrast, 4NT 8.02 does not care if the destination file is readonly or not, /Z works (and I have verified that without /Z and with readonly attribute, 4NT 8.02 also gives "Access denied" (the right thing under these combination of circumstances)).
Thanks
Stephen Howe
Has MOVE changed between 4NT 8.02 and TCC 9.02?
For space purposes on a Network drive, I have a batch file which unzips ZIP files and re-ZIPs them using maximal compression, placing them back they started, savign a small amount of space.
It looks like
>>>>>>>>>
for %a in (B2007*.Z) do (wzunzip %a C: & wzzip -ex -m C:%a C:*.* & move /Z C:%a m:)
>>>>>>>>>
Now this works under 4NT 8.02, it fails under TCC 9.02.
(The original ZIP files have a Z extension and have the read-only attribute set).
What I have determined is that the MOVE command
MOVE /Z C:B20070101.BR2.Z M:
is working for 4NT 8.02 but failing for TCC 9.02
I get "Access denied". MOVE is not honoring the /Z switch
If I remove the read-only attribute on the destination, MOVE then works for TCC 9.02.
In constrast, 4NT 8.02 does not care if the destination file is readonly or not, /Z works (and I have verified that without /Z and with readonly attribute, 4NT 8.02 also gives "Access denied" (the right thing under these combination of circumstances)).
Thanks
Stephen Howe