Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Hide .BAT files run from VB script

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Hide .BAT files run from VB script
  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 >>
 Hide .BAT files run from VB script - 10/9/2008 10:29:55 PM   
  Frobs

 

Posts: 16
Score: 0
Joined: 9/22/2008
Status: offline
Hi

I am currently trying to replace our .Bat login script with a VB script. During the VB script I execute some .Bat files, is it possible to hide them so they don't show on the screen when executed?

/Frobs
 
 
Post #: 1
 
 RE: Hide .BAT files run from VB script - 10/9/2008 10:49:44 PM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
shell.Run "someBat.bat",0,True (the 0 hides the window.)

For more info, take a look at Run in the WSH docs.

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to Frobs)
 
 
Post #: 2
 
 RE: Hide .BAT files run from VB script - 10/11/2008 9:13:49 PM   
  Frobs

 

Posts: 16
Score: 0
Joined: 9/22/2008
Status: offline
Great, it worked perfectly. Thanks for the help!

(in reply to mbouchard)
 
 
Post #: 3
 
 RE: Hide .BAT files run from VB script - 10/12/2008 10:14:56 PM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
You are welcome.

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to Frobs)
 
 
Post #: 4
 
 
 
  

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 >> Hide .BAT files run from VB script 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