How to? COPY ftp folder query

Apr 2, 2011
1,427
10
54
North Carolina, USA
Code:
copy /a: /e /f /g /md /s /u /w /[! ftp://abc.def.com/subfldr\* ] "ftp://abc.def.com/*"    c:\TESTING\abc.def.com\

Any idea why the subfldr\ folder is still being processed?
 
Jun 2, 2008
376
2
Newton, MA
Code:
copy /a: /e /f /g /md /s /u /w /[! ftp://abc.def.com/subfldr\* ] "ftp://abc.def.com/*"    c:\TESTING\abc.def.com\

Any idea why the subfldr\ folder is still being processed?

One possibility: you may need to use subfldr/ (with forward slash). Figuring out when to use backslash and forward slash drives me crazy with FTP operations in TCC.
 
Apr 2, 2011
1,427
10
54
North Carolina, USA
Code:
ftp://abc.def.com/fldr\afile.ext => C:\TCMD\MyPlugins\abc.def.com\fldr\afile.ext
TCC: C:\TCMD\UpdatePlugins.btm [4]  FTP protocol error: 550 Could not get file size. "/fldr\afile.ext"

after changing subfldr\ to subfldr/

Any ideas?
 
Jun 2, 2008
376
2
Newton, MA
Code:
ftp://abc.def.com/fldr\afile.ext => C:\TCMD\MyPlugins\abc.def.com\fldr\afile.ext
TCC: C:\TCMD\UpdatePlugins.btm [4]  FTP protocol error: 550 Could not get file size. "/fldr\afile.ext"

It looks to me as though you still have a mix of forward and back slashes as directory separators (abc.def.com/fldr\afile.ext). I'm not sure that that is the cause of the problem, but it looks problematic.

-- Jay
 
May 20, 2008
11,380
98
Syracuse, NY, USA
I tried many things trying to get the exclude list working. Here's the last one that didn't work, followed by one that did work.
Code:
v:\> copy /[!/4plugins/X64/*] /s ftp://ilucky/4plugins/* v:\empty\
ftp://ilucky/4plugins/4autotray.zip => V:\empty\4autotray.zip
ftp://ilucky/4plugins/4console.zip => V:\empty\4console.zip
ftp://ilucky/4plugins/4utils.zip => V:\empty\4utils.zip
ftp://ilucky/4plugins/sysutils.zip => V:\empty\sysutils.zip
ftp://ilucky/4plugins/X64\4autotray64.zip => V:\empty\X64\4autotray64.zip
ftp://ilucky/4plugins/X64\4console64.zip => V:\empty\X64\4console64.zip
ftp://ilucky/4plugins/X64\4utils64.zip => V:\empty\X64\4utils64.zip
ftp://ilucky/4plugins/X64\sysutils64.zip => V:\empty\X64\sysutils64.zip
  8 files copied

v:\> copy /[!X64/*] /s ftp://ilucky/4plugins/* v:\empty\
ftp://ilucky/4plugins/4autotray.zip => V:\empty\4autotray.zip
ftp://ilucky/4plugins/4console.zip => V:\empty\4console.zip
ftp://ilucky/4plugins/4utils.zip => V:\empty\4utils.zip
ftp://ilucky/4plugins/sysutils.zip => V:\empty\sysutils.zip
  4 files copied
 
Apr 2, 2011
1,427
10
54
North Carolina, USA
It was this - sorry for the typos earlier....

Code:
copy /a: /e /f /g /md /s /u /w /[! "ftp://abc.def.com/src/*" ] "ftp://abc.def.com/*"     c:\TCMD\MyPlugins\abc.def.com\
 
Apr 2, 2011
1,427
10
54
North Carolina, USA
Thank you vince for the working solution....

I tried many things trying to get the exclude list working. Here's the last one that didn't work, followed by one that did work.
Code:
v:\> copy /[!/4plugins/X64/*] /s ftp://ilucky/4plugins/* v:\empty\
ftp://ilucky/4plugins/4autotray.zip => V:\empty\4autotray.zip
ftp://ilucky/4plugins/4console.zip => V:\empty\4console.zip
ftp://ilucky/4plugins/4utils.zip => V:\empty\4utils.zip
ftp://ilucky/4plugins/sysutils.zip => V:\empty\sysutils.zip
ftp://ilucky/4plugins/X64\4autotray64.zip => V:\empty\X64\4autotray64.zip
ftp://ilucky/4plugins/X64\4console64.zip => V:\empty\X64\4console64.zip
ftp://ilucky/4plugins/X64\4utils64.zip => V:\empty\X64\4utils64.zip
ftp://ilucky/4plugins/X64\sysutils64.zip => V:\empty\X64\sysutils64.zip
  8 files copied

v:\> copy /[!X64/*] /s ftp://ilucky/4plugins/* v:\empty\
ftp://ilucky/4plugins/4autotray.zip => V:\empty\4autotray.zip
ftp://ilucky/4plugins/4console.zip => V:\empty\4console.zip
ftp://ilucky/4plugins/4utils.zip => V:\empty\4utils.zip
ftp://ilucky/4plugins/sysutils.zip => V:\empty\sysutils.zip
  4 files copied
 
Similar threads
Thread starter Title Forum Replies Date
M Strange error messages from TCC in FTP copy Support 7
vefatica Fixed COPY /S ftp://... Support 1
C WAD copy /u ftp local with Timeout? Support 5
vefatica FTP copy interrupted Support 2
jadaml Documentation Is COPY realy doesn't work for any HTTP and FTP? Support 3
S Return of FTP copy bug in 16.02.48 Support 12
S WAD FTP copy fails in 16.00.25 Support 24
S WAD COPY from FTP site fails in 14.03.51 Support 9
A How to? Instruct COPY to delete file if only partially copied (via FTP) Support 8
S FTP site; FTP copy Support 4
noahcoad copy /w to FTP does not set time stamp Support 1
K copy ftp: with /w problem Support 4
K Copy Ftp on Server 2008 painfully slow Support 2
nikbackm FTP problem with COPY /U Support 0
C Copy (sys) error Support 3
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
vefatica Copy/Paste anomaly Support 4
D Documentation Typo in COPY help Support 0
samintz COPY fails to copy from \\wsl$ Support 20
D Differences between TCC and CMD with COPY /b Support 4
fpefpe copy /u and timestamps Support 4
G TCMD crash when copy Support 3
Alpengreis How to? Copy DIRs with attributes ... Support 4
E Text copy bug Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
fpefpe copy/cat Support 7
K copy /w slow relative to robocopy /mir Support 0
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
K "copy /z /w" command not deleting read-only files in destination Support 10
K copy changing destination current directory Support 1
D Keystroke to copy previous argument Support 3
A How to? Copy+Paste in TCMD tabs with Ctrl-Shift-Ins? Support 5
RChrismon How to? Copy TCMD.INI to New Version Support 7
R How to? Append files in multiple subfolders using copy? Support 8
Dick Johnson COPY /u (?) Support 9
fpefpe Documentation copy /u Support 7
R How to? copy /q ABC.txt + DEF.txt is appending hex 1A Support 8
D copy /g only shows transfer rate Support 1
J Error "Contents lost before copy" Support 3
B Can copy command concatenate multiple mp3 files Support 2
rps Documentation "Copy+Paste+run" question Support 2
kb6ojs Make /G parameter persistent in COPY/MOVE command? Support 4
fpefpe How to? copy / exclude Support 2
fpefpe robocopy -- copy /w Support 8
C copy /w /p prompts for deletion, but ... Support 3
D Fixed Copy Support 1
fpefpe Documentation copy/move using /c or /u Support 2
samintz WAD Copy/append adds a character Support 3
P Simple RegEx copy Support 9
fromano Fixed COPY ... TO ... crashing Support 3

Similar threads