|
-
Apr 20th, 2004, 05:30 AM
#1
Thread Starter
Hyperactive Member
Command Prompt
Hi,
I know you can run 'command prompt' from the shortcut in the start menu, but thats not what I want to know.
I want to know, after making a shortcut to 'command prompt' how do I get it to automatically run ftp and connect to a set site, automatically enter the username and password and upload a set file?
is this possible?
thank you,
-
Apr 20th, 2004, 05:59 AM
#2
Why don't you just write a batch file?
See any DOS book since 1970 for details how
I don't live here any more.
-
Apr 20th, 2004, 06:06 AM
#3
Thread Starter
Hyperactive Member
and where you I find that?
and would it be possible to execute that from VB.net using Shell32?
-
Apr 20th, 2004, 06:32 AM
#4
Originally posted by §tudz
and where you I find that? go to a library
and would it be possible to execute that from VB.net using Shell32? yes
Batch files are a built-in part of the DOS platform. You'd be better off getting a book about DOS because the internet is just packed with crap advice where DOS is concerned (imho).
Look for a book with a title like "Teach yourself DOS in 21 days". Look in the contents for "Batch Files"
you can execute a *.bat file by either typing it's name at a dos prompt or by double-clicking its icon from windows. You can supply command lines args to them and lots of other cool stuff. (well it was cool 15 years ago). Its still a viable way to get simple file processes done without wasting effort writing a dedicated program.
Last edited by wossname; Apr 20th, 2004 at 06:35 AM.
I don't live here any more.
-
Apr 20th, 2004, 06:41 AM
#5
Create a shortcut with the following in the path text box:
cmd /C "ftp ftp.host.com"
-
Apr 20th, 2004, 12:33 PM
#6
Thread Starter
Hyperactive Member
Originally posted by visualAd
Create a shortcut with the following in the path text box:
cmd /C "ftp ftp.host.com"
cool thanks that works great, but what about the functions such as username, password then upload the file
-
Apr 20th, 2004, 12:42 PM
#7
You can write a script to automate the process. Heres a link showing you how:
http://support.microsoft.com/?kbid=96269
-
Apr 20th, 2004, 12:44 PM
#8
Thread Starter
Hyperactive Member
thanks for all the help...
I have stumbled my way through a bacth file and it works great.
thanks again.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|