Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - xcopy ftp

Reply
 
Old 02-02-2009   #1 (permalink)
James


 
 

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 SpecsSystem Spec
Old 02-02-2009   #2 (permalink)
Pegasus \(MVP\)


 
 

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 SpecsSystem Spec
Old 02-04-2009   #3 (permalink)
Al Dunbar


 
 

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 SpecsSystem Spec
Old 02-04-2009   #4 (permalink)
Todd Vargo


 
 

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 SpecsSystem Spec
Old 02-04-2009   #5 (permalink)
Al Dunbar


 
 

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 SpecsSystem Spec
Old 02-05-2009   #6 (permalink)
Todd Vargo


 
 

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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46