How to? COPY ftp folder query

#1
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
284
1
Newton, MA
#2
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.
 
#3
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
284
1
Newton, MA
#4
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
 
#5
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
 
#6
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\
 
#7
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