![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | xcopy ftp This might be a dumb question but, I can't find a simple answer anywhere. Is there a way via a bat or cmd (even vbs) to: 1) auto logon to a FTP server 2) do an "xcopy" from a ftp server to one directory on the local drive 3) auto logoff and close the ftp session I don't need the folders. I just need all of the files that are in separate folders to be placed in one folder locally. Finally, is there a way to skip files that are already on local drive so they do not get re-written? Thanks in advance, James |
My System Specs![]() |
| | #2 (permalink) |
| | Re: xcopy ftp "James" <jbrister@xxxxxx> wrote in message news:eTDCtsWhJHA.3728@xxxxxx This might be a dumb question but, I can't find a simple answer anywhere. Is there a way via a bat or cmd (even vbs) to: 1) auto logon to a FTP server 2) do an "xcopy" from a ftp server to one directory on the local drive 3) auto logoff and close the ftp session I don't need the folders. I just need all of the files that are in separate folders to be placed in one folder locally. Finally, is there a way to skip files that are already on local drive so they do not get re-written? Thanks in advance, James ================ Here is a batch file that will download multiple files: @echo off set script="%temp%\Script.scr" set site=ftp.mysite.com set user=JoeDoe set password=johnny echo> %Script% %user% echo>> %Script% %password% echo>> %Script% cd test echo>> %Script% binary echo>> %Script% prompt off echo>> %Script% mget *.* echo>> %Script% quit ftp -s:%Script% %site% del %Script% The version of ftp.exe that comes with Windows is quite limited. If you need something a little fancier then perhaps wget.exe (http://www.interlog.com/~tcharron/wgetwin.html) is your tool. Its -nc (no_clobber) switch prevents pre-existing files from getting downloaded again. |
My System Specs![]() |
| | #3 (permalink) |
| | Re: xcopy ftp If you are looking for batch solutions, please post them at microsoft.public.win2000.cmdprompt.admin or microsoft.public.windows.server.scripting, where such questions are more on-topic than here in the vbscript newsgroup. /Al "James" <jbrister@xxxxxx> wrote in message news:eTDCtsWhJHA.3728@xxxxxx This might be a dumb question but, I can't find a simple answer anywhere. Is there a way via a bat or cmd (even vbs) to: 1) auto logon to a FTP server 2) do an "xcopy" from a ftp server to one directory on the local drive 3) auto logoff and close the ftp session I don't need the folders. I just need all of the files that are in separate folders to be placed in one folder locally. Finally, is there a way to skip files that are already on local drive so they do not get re-written? Thanks in advance, James |
My System Specs![]() |
| | #4 (permalink) |
| | Re: xcopy ftp OP included "(even vbs)", so it would be appropriate to provide a vbs equivalent solution along with your topicality redirection. "Al Dunbar" <alandrub@xxxxxx> wrote in message news:eHWvua0hJHA.6128@xxxxxx If you are looking for batch solutions, please post them at microsoft.public.win2000.cmdprompt.admin or microsoft.public.windows.server.scripting, where such questions are more on-topic than here in the vbscript newsgroup. /Al "James" <jbrister@xxxxxx> wrote in message news:eTDCtsWhJHA.3728@xxxxxx This might be a dumb question but, I can't find a simple answer anywhere. Is there a way via a bat or cmd (even vbs) to: 1) auto logon to a FTP server 2) do an "xcopy" from a ftp server to one directory on the local drive 3) auto logoff and close the ftp session I don't need the folders. I just need all of the files that are in separate folders to be placed in one folder locally. Finally, is there a way to skip files that are already on local drive so they do not get re-written? Thanks in advance, James |
My System Specs![]() |
| | #5 (permalink) |
| | Re: xcopy ftp That makes three of us that failed to provide the OP a vbs solution, so I'm not sure of the reason for your complaint. When I replied I had already seen that Pegasus had provided the batch solution that the OP was primarily interested in. On balance I feel that our combined response has been basically constructive - unless, of course, you feel that we should be giving batch advice here. If there is a perception that providing a vbscript solution is a prerequisite for providing navigational advice, then perhaps we should consider "vbscrpt" as a generic term meaning "whatever scripting methodology you can't find a newsgroup for... /Al "Todd Vargo" <tlvargo@xxxxxx> wrote in message news:u4aSBp0hJHA.2384@xxxxxx OP included "(even vbs)", so it would be appropriate to provide a vbs equivalent solution along with your topicality redirection. "Al Dunbar" <alandrub@xxxxxx> wrote in message news:eHWvua0hJHA.6128@xxxxxx If you are looking for batch solutions, please post them at microsoft.public.win2000.cmdprompt.admin or microsoft.public.windows.server.scripting, where such questions are more on-topic than here in the vbscript newsgroup. /Al "James" <jbrister@xxxxxx> wrote in message news:eTDCtsWhJHA.3728@xxxxxx This might be a dumb question but, I can't find a simple answer anywhere. Is there a way via a bat or cmd (even vbs) to: 1) auto logon to a FTP server 2) do an "xcopy" from a ftp server to one directory on the local drive 3) auto logoff and close the ftp session I don't need the folders. I just need all of the files that are in separate folders to be placed in one folder locally. Finally, is there a way to skip files that are already on local drive so they do not get re-written? Thanks in advance, James |
My System Specs![]() |
| | #6 (permalink) |
| | Re: xcopy ftp It was not a complaint. I was thinking along the lines of, "Is there a way...", from a vbs aspect that was left unanswered. I'm curious because I don't know. OTOH, if one is just going to police groups for topicality... well, let's not get into that discussion before the next group policeman comes along to lecture us about top posting. "Al Dunbar" <alandrub@xxxxxx> wrote in message news:OiXze20hJHA.3648@xxxxxx That makes three of us that failed to provide the OP a vbs solution, so I'm not sure of the reason for your complaint. When I replied I had already seen that Pegasus had provided the batch solution that the OP was primarily interested in. On balance I feel that our combined response has been basically constructive - unless, of course, you feel that we should be giving batch advice here. If there is a perception that providing a vbscript solution is a prerequisite for providing navigational advice, then perhaps we should consider "vbscrpt" as a generic term meaning "whatever scripting methodology you can't find a newsgroup for... /Al "Todd Vargo" <tlvargo@xxxxxx> wrote in message news:u4aSBp0hJHA.2384@xxxxxx OP included "(even vbs)", so it would be appropriate to provide a vbs equivalent solution along with your topicality redirection. "Al Dunbar" <alandrub@xxxxxx> wrote in message news:eHWvua0hJHA.6128@xxxxxx If you are looking for batch solutions, please post them at microsoft.public.win2000.cmdprompt.admin or microsoft.public.windows.server.scripting, where such questions are more on-topic than here in the vbscript newsgroup. /Al "James" <jbrister@xxxxxx> wrote in message news:eTDCtsWhJHA.3728@xxxxxx This might be a dumb question but, I can't find a simple answer anywhere. Is there a way via a bat or cmd (even vbs) to: 1) auto logon to a FTP server 2) do an "xcopy" from a ftp server to one directory on the local drive 3) auto logoff and close the ftp session I don't need the folders. I just need all of the files that are in separate folders to be placed in one folder locally. Finally, is there a way to skip files that are already on local drive so they do not get re-written? Thanks in advance, James |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Xcopy /D copies all files, not just newer | Vista General | |||
| robocopy or xcopy ? | Vista General | |||
| XCOPY fails in Vista | Vista General | |||
| Xcopy Continue (/C) switch | Vista General | |||
| xcopy batch | PowerShell | |||