Using WSH to get a file from a FTP site in web 
Author Message
 Using WSH to get a file from a FTP site in web

i need run a command that brings me a file from a FTP site like:
"ftp:\\ftp.xyxyxy.com\path\filename"
the problem is that i have to wait a popup windows to say i want to save the
file, the new name i want to give the file and where to download it.
sendkeys method is not the best way as i dont know how long i will
wait that popup window.

is there a way to do this???

thanx



Mon, 30 Sep 2002 03:00:00 GMT  
 Using WSH to get a file from a FTP site in web
the ftp utility has a command line option to read a script file

command:
<open dos prompt, or from Run line:>
ftp -s:C:\myscript.txt  ftp.xyxyxy.com

---c:\myscript.txt--
myID
MyPassword
cd <path>
get <filename>  <destination and filename>
bye
--end file--
It downloads to the folder the command is run from
Naturally, a shell.Run command would do all this

--
Mark L. Ferguson       Please reply in Newsgroup
marfers notes for OE 5.0  >  http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:

> i need run a command that brings me a file from a FTP site like:
> "ftp:\\ftp.xyxyxy.com\path\filename"
> the problem is that i have to wait a popup windows to say i want to save the
> file, the new name i want to give the file and where to download it.
> sendkeys method is not the best way as i dont know how long i will
> wait that popup window.

> is there a way to do this???

> thanx



Mon, 30 Sep 2002 03:00:00 GMT  
 Using WSH to get a file from a FTP site in web

Why not just execute the FTP command with the -s:scriptname.txt switch.  There is even a WSC on Clarence's site that makes it trivial to do.  

Win32 Scripting [Clarence Washington]
http://cwashington.netreach.net
http://cwashington.netreach.net/script_repository/repository.asp

Use this link to search
http://cwashington.netreach.net/script_repository/query.asp

Search for author: Mastry

There are 2 WSCs.  Look for "FTP Without ..." (this is ftp.wsc) and "Run Command and ..." (this is shell.wsc used by ftp.wsc).

http://cwashington.netreach.net/main_site/downloads
http://cwashington.netreach.net/script_repository/faqs.asp?topic=wmifaq
http://cwashington.netreach.net/script_repository/faqs.asp?topic=adsifaq

--
Michael Harris
MVP Scripting

i need run a command that brings me a file from a FTP site like:
"ftp:\\ftp.xyxyxy.com\path\filename"
the problem is that i have to wait a popup windows to say i want to save the
file, the new name i want to give the file and where to download it.
sendkeys method is not the best way as i dont know how long i will
wait that popup window.

is there a way to do this???

thanx



Mon, 30 Sep 2002 03:00:00 GMT  
 Using WSH to get a file from a FTP site in web
My problem is that the proxy/gateway servers do not allow direct FTP.  You
have to use IE and rely on the IE->MS Proxy FTP/HTTP conversion process!



the ftp utility has a command line option to read a script file

command:
<open dos prompt, or from Run line:>
ftp -s:C:\myscript.txt  ftp.xyxyxy.com

---c:\myscript.txt--
myID
MyPassword
cd <path>
get <filename>  <destination and filename>
bye
--end file--
It downloads to the folder the command is run from
Naturally, a shell.Run command would do all this

--
Mark L. Ferguson       Please reply in Newsgroup
marfers notes for OE 5.0  >
http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:
> i need run a command that brings me a file from a FTP site like:
> "ftp:\\ftp.xyxyxy.com\path\filename"
> the problem is that i have to wait a popup windows to say i want to save
the
> file, the new name i want to give the file and where to download it.
> sendkeys method is not the best way as i dont know how long i will
> wait that popup window.

> is there a way to do this???

> thanx



Fri, 04 Oct 2002 03:00:00 GMT  
 Using WSH to get a file from a FTP site in web
its my problem to mark,
any ideas?????

Mark Crossley escreveu na mensagem

Quote:
>My problem is that the proxy/gateway servers do not allow direct FTP.  You
>have to use IE and rely on the IE->MS Proxy FTP/HTTP conversion process!



>the ftp utility has a command line option to read a script file

>command:
><open dos prompt, or from Run line:>
>ftp -s:C:\myscript.txt  ftp.xyxyxy.com

>---c:\myscript.txt--
>myID
>MyPassword
>cd <path>
>get <filename>  <destination and filename>
>bye
>--end file--
>It downloads to the folder the command is run from
>Naturally, a shell.Run command would do all this

>--
>Mark L. Ferguson       Please reply in Newsgroup
>marfers notes for OE 5.0  >
>http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


>> i need run a command that brings me a file from a FTP site like:
>> "ftp:\\ftp.xyxyxy.com\path\filename"
>> the problem is that i have to wait a popup windows to say i want to save
>the
>> file, the new name i want to give the file and where to download it.
>> sendkeys method is not the best way as i dont know how long i will
>> wait that popup window.

>> is there a way to do this???

>> thanx



Fri, 04 Oct 2002 03:00:00 GMT  
 Using WSH to get a file from a FTP site in web
Try taking a look at:
http://cwashington.netreach.net/script_repository/view_scripts.asp?In...
&ScriptType=VBScript

I've not tried it myself yet.

Mark


Quote:
> its my problem to mark,
> any ideas?????

> Mark Crossley escreveu na mensagem

> >My problem is that the proxy/gateway servers do not allow direct FTP.
You
> >have to use IE and rely on the IE->MS Proxy FTP/HTTP conversion process!



> >the ftp utility has a command line option to read a script file

> >command:
> ><open dos prompt, or from Run line:>
> >ftp -s:C:\myscript.txt  ftp.xyxyxy.com

> >---c:\myscript.txt--
> >myID
> >MyPassword
> >cd <path>
> >get <filename>  <destination and filename>
> >bye
> >--end file--
> >It downloads to the folder the command is run from
> >Naturally, a shell.Run command would do all this

> >--
> >Mark L. Ferguson       Please reply in Newsgroup
> >marfers notes for OE 5.0  >
> >http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> >> i need run a command that brings me a file from a FTP site like:
> >> "ftp:\\ftp.xyxyxy.com\path\filename"
> >> the problem is that i have to wait a popup windows to say i want to
save
> >the
> >> file, the new name i want to give the file and where to download it.
> >> sendkeys method is not the best way as i dont know how long i will
> >> wait that popup window.

> >> is there a way to do this???

> >> thanx



Sat, 05 Oct 2002 03:00:00 GMT  
 Using WSH to get a file from a FTP site in web

Quote:
> Try taking a look at:
> http://cwashington.netreach.net/script_repository/view_scripts.asp?In...
> &ScriptType=vbscript

That looks highly impressive, but what's with the "body 8209"
business?!?
--
Gerry Hickman (London UK)
http://www.gerry1.dircon.co.uk/


Sat, 05 Oct 2002 03:00:00 GMT  
 Using WSH to get a file from a FTP site in web
Just the author's way of indicating that the data returned is to be treated somewhat like an array
of bytes -- vartype 8192 (array) + vartype 17 (byte) = 8209...

--
Michael Harris
MVP Scripting

Quote:

> Try taking a look at:
> http://cwashington.netreach.net/script_repository/view_scripts.asp?In...

That looks highly impressive, but what's with the "body 8209"
business?!?
--
Gerry Hickman (London UK)
http://www.gerry1.dircon.co.uk/


Sat, 05 Oct 2002 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. getting file from ftp-site

2. retrieve a list of files (WEB, FTP) using a vbscript

3. ftp to web site

4. How Can I Create a FTP Site with WSH

5. Add FTP site operators using ADSI and VBscript

6. Getting Logonserver and SMS Site info via WMI/WSH

7. VBScript or BAT file to upload to FTP site

8. Create or Send File to FTP site

9. Creating web sites with WSH ?

10. Creating web sites with WSH ?

11. WSH FAQ WEB site update...

 

 
Powered by phpBB® Forum Software