Welcome!

By registering with us, you'll be able to discuss, share and exchange private messages with other members of our community.

SignUp Now!

How to? COPY ftp folder query

Apr
1,731
15
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?
 
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.
 
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?
 
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
 
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
 
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\
 
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

Replies
7
Views
2K
Back
Top