TCC 9.02 vs 4NT 8.02 difference - for %a COPY

Jun 7, 2008
121
0
Hi

I have a command like so

for /d %a in (PA*.*) do copy /s %a\%a2009\%a200907\*.* m:\ZipStorage\OpenTV\UK\Programs\%a\%a2009\%a200907

Now it works out that the destination directories dont exist but TCC 9.02.157 creates all the intermediate destination directories to populate the final equivalent sub-directories with data files.

- good, exactly what I want.

But if I try the same command under 4NT 8.02.103, it barfs as the destination directories dont exist with
"Directory not found in M:\zipstorage..."

I was not aware of this 4NT8.02/TCC 9.02 difference.

Is there a way of getting 4NT 8.02 to do the same?
Would it help if this was 8.02.106 ?

Cheers

Stephen Howe


 
Jun 7, 2008
121
0
Update

I have tried this with 4NT 8.02

for /d %a in (SA*.*) do ( md /s m:\ZipStorage\OpenTV\UK
\Spots\%a\%a2009\%a200907\ ^ copy /s %a\%a2009\%a200907\*.* m:\ZipStorage\OpenTV
\UK\Spots\%a\%a2009\%a200907)

(SA is similar to QA in previous message, same directory structure)

but I get messages like

4NT: (Sys) The filename, directory name, or volume label syntax is incorrect.
"M:\InfoSysData\UK\Spots\SA0172\SA01722009\SA0172200907\*.*"
4NT: (Sys) Cannot create a file when that file already exists.
"M:\ZipStorage\OpenTV\UK\Spots\SA0172\SA01722009\SA0172200907"
4NT: (Sys) Cannot create a file when that file already exists.
"M:\ZipStorage\OpenTV\UK\Spots\SA0177\SA01772009\SA0177200907"
4NT: (Sys) Cannot create a file when that file already exists.
"M:\InfoSysData\UK\Spots\copy"

So painful

Cheers

Stephen Howe
 
Jun 7, 2008
121
0
I understand this ever less now. One set of commands worked with 4NT 8.02 (that is with MD... ^ COPY...).
Theory:
Perhaps on 1st attempt the MD work but somehow COPY did not kick in
On 2nd attempt the COPY worked as the MD was no longer necessary.

All very strange
(I need to do one more set of copying so I will try again with 4NT 8.02)

Stephen Howe
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Stephen Howe wrote:
| Hi
|
| I have a command like so
|
| for /d %a in (PA*.*) do copy /s %a\%a2009\%a200907\*.*
| m:\ZipStorage\OpenTV\UK\Programs\%a\%a2009\%a200907
|
| Now it works out that the destination directories dont exist but TCC
| 9.02.157 creates all the intermediate destination directories to
| populate the final equivalent sub-directories with data files.
|
| - good, exactly what I want.
|
| But if I try the same command under 4NT 8.02.103, it barfs as the
| destination directories dont exist with "Directory not found in
| M:\zipstorage..."
|
| I was not aware of this 4NT8.02/TCC 9.02 difference.
|
| Is there a way of getting 4NT 8.02 to do the same?
| Would it help if this was 8.02.106 ?

No. This is one of the features added in V9.
--
Steve
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Stephen Howe wrote:
| I understand this ever less now. One set of commands worked with 4NT
| 8.02 (that is with MD... ^ COPY...). Theory:
| Perhaps on 1st attempt the MD work but somehow COPY did not kick
| in On 2nd attempt the COPY worked as the MD was no longer
| necessary.
|
| All very strange
| (I need to do one more set of copying so I will try again with 4NT
| 8.02)

My WAG is that in the first pass the COPY command is attempted before the
new directory is actually on the disk. Naturally in the 2nd pass it's
already there, so it is not needed. I'd simplify the task using an alias
instead of MD (by the way, you may want to bypass updating JPSTREE.IDX
utilizing the /N option of MD):

alias MDX=`if not isdir %1 ( md /n %1 %+ delay /m 100 )`

--
HTH, Steve
 
Similar threads
Thread starter Title Forum Replies Date
N Shortcut stops working after 4NT to TCC Upgrade Support 73
BobK New to TCC, Why does it use my old 4NT files? Support 3
rcjackson0926 TCC 11.0 vs 4NT copy and paste Support 2
D Peculiar symptoms w/ 4NT, TCC/LE vis a vis CMD.EXE Support 11
S Another 4NT 8.02 vs TCC 9.02 diff - MOVE command Support 3
S TCC 9.02 vs 4NT 8.02 TAB completion on FTP Support 7
R 4NT, TCC/LE : "IF EXIST X:\NUL" always fails Support 13
vefatica TCC startup: /IP not honored after /K Support 1
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
C COMSPEC constantly reset to TCC.EXE Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
L FTYPE in TCC, less quirky than in cmd.exe Support 3
V Set path permanently from within TCC? Support 3
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
Joe Caverly tcc.exception.log Support 3
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
vefatica SCRIPT ... TCC disappears Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
Jesse Heines Access Denied errors in TCC 27 Support 9
fpefpe How to? tcc inifile (%_ininame) Support 3
M How to? Black TCC Prompt Support 2
D Differences between TCC and CMD with COPY /b Support 4
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Jay Sage Extra TCC Tasks Support 6
vefatica Can I turn off the minimize to tray mechanism in TCC? Support 5
N Command execution slows down in TCC Prompt after a while Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
samintz How to? Is this doable in TCC? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
D TCC tab detaching & restarting Support 3
Ó Recent git output not shown on TCC Support 1
P Kill all other instances of tcc from a btm batch file Support 2
L Using TCC.exe through an SSH connection Support 3
M TCC color issue in ConEmu Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
Alpengreis Python support for 3.8.3 in TCC v26.x? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.37 Uploaded Support 0
vefatica TCC waits for Office apps Support 4

Similar threads