Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Running Java.exe in VBS

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Running Java.exe in VBS
  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 >>
 Running Java.exe in VBS - 11/7/2007 5:56:26 PM   
  jtibb

 

Posts: 3
Score: 0
Joined: 11/7/2007
Status: offline
I am having the darndest time in trying to run Java.exe with all of the needed parameters.  I have put quotes between it seems like everything at one time or another, but haven't found the right combination.  This is taken from a shortcut...I am not familiar with the Java command, so that isn't helping me any :).  Could look at what I have and offer any suggestions, please?

Thanks!


Dim
appName,RegObj

Set
RegObj = WScript.CreateObject("WScript.Shell")
appName =
"java.exe -Derrors com.uytame.eIEHus.eIIIEHus -ms16777216 -mx268435456"


RegObj.Run appName, 1, False
 
 
Post #: 1
 
 RE: Running Java.exe in VBS - 11/7/2007 6:03:05 PM   
  ehvbs

 

Posts: 2196
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi jtibb,

what happens, if you run the command (without the ") from a command line?

(in reply to jtibb)
 
 
Post #: 2
 
 RE: Running Java.exe in VBS - 11/7/2007 6:14:33 PM   
  jtibb

 

Posts: 3
Score: 0
Joined: 11/7/2007
Status: offline
That's a good question...It flashes a black DOS window up and it disappears.  It's supposed to start an application.  I don't know how well it would run from a VBS, if it doesn't run from Windows Run...although, it runs from the Shortcut OK...Is there a way just to "run" a shortcut that you know of?  Thank You!!!

(in reply to ehvbs)
 
 
Post #: 3
 
 RE: Running Java.exe in VBS - 11/7/2007 6:31:29 PM   
  ehvbs

 

Posts: 2196
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi jtibb,

what happens, if you do something like

  "C:\Dokumente und Einstellungen\eh\Desktop\startjavaapp.lnk"

(with ") on the command line? If it works, try appName = "<.lnk full filespec>".

Is there a directory (Ausführen in|Execute in (?)) specified in the shortcut?

(in reply to jtibb)
 
 
Post #: 4
 
 RE: Running Java.exe in VBS - 11/7/2007 6:46:34 PM   
  jtibb

 

Posts: 3
Score: 0
Joined: 11/7/2007
Status: offline
Excellent!  That works great!

Thank You!!!!!!

(in reply to ehvbs)
 
 
Post #: 5
 
 RE: Running Java.exe in VBS - 11/7/2007 6:51:34 PM   
  ehvbs

 

Posts: 2196
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi jtibb,

you are welcome. Thanks for the feedback!

Regards

ehvbs

(in reply to jtibb)
 
 
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 >> Running Java.exe in VBS 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