Computing.Net > Forums > Programming > VBScript and FTP

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VBScript and FTP

Reply to Message Icon

Name: skivtmp
Date: January 2, 2007 at 12:45:53 Pacific
OS: Windows XP Pro
CPU/Ram: Pentium D 1.73GHz / 1GB R
Product: 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)?



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: January 2, 2007 at 16:51:24 Pacific
Reply:

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



0
Reply to Message Icon

Related Posts

See More







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


Sponsored links

Ads by Google


Results for: VBScript and FTP

FTP and Batch Files www.computing.net/answers/programming/ftp-and-batch-files/13160.html

VBScript help creating a log file www.computing.net/answers/programming/vbscript-help-creating-a-log-file-/14414.html

C++ And FTP www.computing.net/answers/programming/c-and-ftp/18455.html