Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


how to execute windows program from vbscript??

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> how to execute windows program from vbscript??
  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 >>
 how to execute windows program from vbscript?? - 5/23/2001 8:02:14 AM   
  neilld

 

Posts: 13
Score: 0
Joined: 5/23/2001
From: USA
Status: offline
Hi guys , Can any one of u tell me how to execute windows executable(.exe) program from vb script .
I am want to execute Internet Explorer.
Help will be highly appreciated..
Thanks in advance
 
 
Post #: 1
 
 Re: how to execute windows program from vbscript?? - 5/23/2001 8:04:38 AM   
  adminkoe

 

Posts: 117
Score: 0
Joined: 12/23/2000
From:
Status: offline
Hi,

Try this:

Set Command = WScript.CreateObject("WScript.Shell")
cmd = "c:\program files\Internet Explorer\iexplore.exe"
Command.Run (cmd)

(in reply to neilld)
 
 
Post #: 2
 
 Re: how to execute windows program from vbscript?? - 8/30/2001 1:20:43 AM   
  pixie

 

Posts: 6
Score: 0
Joined: 7/30/2001
From:
Status: offline
Does this execute a program server-side or client side ???
(I need to execute a batch-file client-side to send code to a barcode-printer. If I use the javascript 'print()'-method, it just prints the code, not the barcode.)

(in reply to neilld)
 
 
Post #: 3
 
 Re: how to execute windows program from vbscript?? - 8/30/2001 4:53:45 AM   
  pagooda

 

Posts: 54
Score: 0
Joined: 5/23/2001
From: USA
Status: offline
Pixie, it's for client side. Where do you live?.

(in reply to neilld)
 
 
Post #: 4
 
 RE: Re: how to execute windows program from vbscript?? - 1/4/2008 3:21:41 PM   
  Plain Label

 

Posts: 1
Score: 0
Joined: 1/4/2008
Status: offline

http://weblogs.asp.net/steveschofield/archive/2004/03/14/89240.aspx

(in reply to pixie)
 
 
Post #: 5
 
 RE: Re: how to execute windows program from vbscript?? - 1/7/2008 12:08:22 AM   
  twilliamsen

 

Posts: 195
Score: 0
Joined: 1/18/2007
Status: offline
Try this:

Set Command = WScript.CreateObject("WScript.Shell")
cmd = """c:\program files\Internet Explorer\iexplore.exe"""
Command.Run (cmd)

(in reply to Plain Label)
 
 
Post #: 6
 
 
 
  

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 >> how to execute windows program from vbscript?? 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