HighTechTalks DotNet Forums  

Automated FTP

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss Automated FTP in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jason
 
Posts: n/a

Default Automated FTP - 01-11-2005 , 01:59 PM






Does anyone have a script to automatically FTP files (get) from a specific
ftp site by chance? If so, could you point me to an example please?



Reply With Quote
  #2  
Old   
Helpy Helperton
 
Posts: n/a

Default RE: Automated FTP - 01-25-2005 , 12:53 PM






It's dead easy to do. Create a text file with the login info and commands
that you want to run in your FTP session. Then, when you want to run the
script, type the following at the command-line:

ftp -s:scriptname.txt

For more info about ftp command-line options, type "ftp -h" at the
command-line.

You're obviously going to have to test your script to make sure that it's
working properly. You're also going to need to remember that if you include
your login info in your script, it will be visible in plain text to anyone
who has access to the file.

Hope this helps.



"Jason" wrote:

Quote:
Does anyone have a script to automatically FTP files (get) from a specific
ftp site by chance? If so, could you point me to an example please?




Reply With Quote
  #3  
Old   
Jason
 
Posts: n/a

Default Re: Automated FTP -- Urgent help greatly appreciated. - 01-28-2005 , 03:57 PM



I missed a key requirement in my initial post:

The script must be able to download files that have the current date. That
is, if the file modified date = current date then download it, if not, then
ignore it. I've already looked into dos ftp and can't see any way to
accomplish this, I'm guessing vbscript or jscript is my only chance, but am
not sure how to begin. Any help would be appreciated.

Thanks,

Jason



"Jason" <jason (AT) grossmans (DOT) net> wrote

Quote:
Does anyone have a script to automatically FTP files (get) from a specific
ftp site by chance? If so, could you point me to an example please?




Reply With Quote
  #4  
Old   
Steve Seguis [MVP]
 
Posts: n/a

Default Re: Automated FTP -- Urgent help greatly appreciated. - 01-28-2005 , 06:17 PM



If you can't accomplish this with dos ftp then vbscript or jscript alone
can't help you since neither one supports socket level communication.
However, you could potentially use a windows shell script using the output
of the FTP command to get the job done. The key is to send the ls -ltr
command using the command line ftp program as this will display the
directory listing with the date on there.
--
Steve Seguis - MCSE, MVP Windows Server, SCJP
SCRIPTMATION
Automating the Enterprise
http://www.scriptmation.com


"Jason" <jason (AT) grossmans (DOT) net> wrote

Quote:
I missed a key requirement in my initial post:

The script must be able to download files that have the current date.
That is, if the file modified date = current date then download it, if
not, then ignore it. I've already looked into dos ftp and can't see any
way to accomplish this, I'm guessing vbscript or jscript is my only
chance, but am not sure how to begin. Any help would be appreciated.

Thanks,

Jason



"Jason" <jason (AT) grossmans (DOT) net> wrote in message
news:eiSMs%23A%23EHA.3368 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Does anyone have a script to automatically FTP files (get) from a
specific ftp site by chance? If so, could you point me to an example
please?






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.