Computing.Net > Forums > Programming > VBScript and FTP

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

Reply to Message Icon

Original Message
Name: skivtmp
Date: January 2, 2007 at 12:45:53 Pacific
Subject: VBScript and FTP
OS: Windows XP Pro
CPU/Ram: Pentium D 1.73GHz / 1GB R
Model/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








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software