Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


'Run Line' is it possible?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,34526
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> 'Run Line' is it possible?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 'Run Line' is it possible? - 5/16/2006 3:18:07 AM   
  alleng

 

Posts: 1
Score: 0
Joined: 5/16/2006
Status: offline
With VBScript is it possible to do this:


I have a program I need to execute.

T:\cm.exe

Now bare with me.  The only way to get this program to run without errors is to type in the 'Run Line'  as in Start -> Run -> 'T:\cm.exe'
or to open up a command prompt and change to the T: drive then run cm.exe


What I am hoping to find, which I just can't seem to track down through searching, is a way to write a vbscript that does this.

Run program cm.exe from 'Run Line' as 'T:\cm.exe'


 
 
Post #: 1
 
 RE: 'Run Line' is it possible? - 5/16/2006 3:27:32 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
Use the .Run method of the WSHShell object.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to alleng)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> 'Run Line' is it possible? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts