Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


RE: IF statement within a IF statement, possible?

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: IF statement within a IF statement, possible?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: <<   < prev  1 [2]
Login
Message << Older Topic   Newer Topic >>
 RE: IF statement within a IF statement, possible? - 9/28/2005 4:41:18 PM   
  kracksmith

 

Posts: 198
Score: 0
Joined: 2/24/2005
From:
Status: offline
Ok I have read all I could with your clue and still can't figure it out, can you help me more?

WshShell.Run strCommand [,intWindowStyle] [,bWaitOnReturn]


intWindowStyle = any number between 0 thru 10 (0 is the one i want to use)

bWaitOnReturn = either false or true. False being default if i don't enter true

but if it's set on True then the script is supended until the strCommand is finished.

strCommand being this i think: "runas /user:admin ""c:\Program Files\DataCAD\DataCAD.11.08.01.exe"""



This is what i have from reading what the link  said which doesn't work at all.  "WshShell.run "runas /user:admin ""c:\Program Files\DataCAD\DataCAD.11.08.01.exe""" , 0, true


which looks right to me and should work.



I would like to close this case once everything is good.

(in reply to kracksmith)
 
 
Post #: 21
 
 
Page:  <<   < prev  1 [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 >> RE: IF statement within a IF statement, possible? Page: <<   < prev  1 [2]
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