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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript to command prompt

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi

I was wondering am I able to use VBscript to access the dos command prompt. I want to be able to move files around using DOS but I want to use VB for the rest of what I am doing. DOes VBScript allow you to issue dos commands??
 


Set oShell = WScript.CreateObject("WScript.Shell")
oShell.Run "command /C edit"
 
Thanks for that. What I really want to be able to do is to call a small DOS command line client called soscmd (it is for SourceOffSite) I want to be able to pass in the command line parameters from within VB script. Would I be able to pass VBscript variables as the parameters. Can I pass the parameters to soscmd from within VBscript at all??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top