Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shell command question

Status
Not open for further replies.

LSIGuy

MIS
Jun 26, 2002
18
US
Hi guys.

I am trying to write a program that will go through the shell, attach to a FTP server, and get a file. My problem is, I need to be able to issue commands such as "cd" to the shell to get to the correct folder for FTPing. How can I open the shell, issue simple commands to it and keep it from reseting back to "C:\>" everytime I open it? I don't know if this is possible, but I thought it would be nice to automate this process. Let me know. Thanks.
 
I don't know much but here's how to issue the command PAUSE to the shell.

Shell Environ("comspec") & " /c pause"

perhaps you can get the shell command to run a batch file?

ie: Shell Environ("comspec") & " /c batchfile.bat"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top