| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
VBScript and FTP
|
Original Message
|
Name: skivtmp
Date: January 2, 2007 at 12:45:53 Pacific
Subject: VBScript and FTPOS: Windows XP ProCPU/Ram: Pentium D 1.73GHz / 1GB RModel/Manufacturer: Dell |
Comment: I am writing a VBScript that connects to an FTP site. Once connected, it runs a dir command on a directory through a shell prompt. I need the results of the shell (command window) returned to the VBScript for manipulation. Any ideas if this is possible? Are there scripts out there that can retrieve file information on FTP sites (using the IP address and log-in information...not a mapped drive)?
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: Mechanix2Go
Date: January 2, 2007 at 16:51:24 Pacific
|
Reply: (edit)I dunno VBS but here's how I'd do it with a BATCH: ::== dtg.bat @echo off > %0.ftp >> %0.ftp echo o mysite.com >> %0.ftp echo username >> %0.ftp echo password >> %0.ftp echo dir >> %0.ftp echo bye ftp -s:%0.ftp > %0.txt :: DONE Results will be in dtg.txt
===================================== If at first you don't succeed, you're about average.M2
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Programming Forum Home