Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


VB Script Help

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VB Script Help
  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 >>
 VB Script Help - 6/17/2003 11:58:02 AM   
  jlpabich

 

Posts: 1
Score: 0
Joined: 6/17/2003
From:
Status: offline
I am trying to write a script that executes and executable file through a DOS prompt. Here is what I have so far:


Dim strCommand
Dim WSHShell

strCommand = "cfgtest
Set WSHShell = WScript.CreateObject("WScript.Shell")
' Execute the start order command
WSHShell.Run strCommand, 1, True

Set WSHShell = Nothing
WScript.Quit(0)


If you were to run this from a DOS prompt, I would type in

d:\cfgtest
The cfgtest.exe executes the code in eis.cfg.
When I run this now, it opens the DOS prompt and sits there. What am I missing?
 
 
Post #: 1
 
 
 
  

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 >> VB Script Help 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