Create a VB file to run a simple Command Line script

johncassell

Well-known member
Joined
Jun 10, 2007
Messages
120
Location
Redcar, England
Programming Experience
Beginner
Hi There,

First of all my apologies if I have posted this in the wrong forum but I simply do not know what to call what I am after..

I am uploading a file to an ftp server and I can do this manually by doing the following:

Start>Run>CMD>OK> then typing

ftp -s:ftpfile.txt

I would like to be able to create a vb file which would to this automatically.
I could then save this somewhere for Windows Scheduler to run at automated times.

Is this easy enough to do?

Thanks

John
 
You could simply use a batch file for this. To do this in VB would be a waste of time. Though if you needed a full-on FTP import/export application then I would suggest VB. But as far as executing a few simple command you can just create a batch file.
 
Hi There,

seems I was massively overcomplicating things!

Your comment about the batch file (Didn't really know what one was) was enormously helpful.

For those interested, all I did was open Notepad, type ftp -s:ftpfile.txt and then save it as 'testbatchfile.bat'

if I double click this file it will do what I wanted so I can now schedule this.

Thanks a lot ss7thirty.

John
 
Back
Top