Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Convert Winbatch script to vbs?

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

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Convert Winbatch script to 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 >>
 Convert Winbatch script to vbs? - 8/18/2008 10:31:02 PM   
  TomRiddle


Posts: 191
Score: 4
Joined: 2/7/2008
Status: offline
I am trying to be able to detect if a XP workstation is locked and apparently this code does it.

http://www.winbatch.com

Do you think it would be possible to port to vbscript?


      

< Message edited by TomRiddle -- 8/18/2008 10:42:07 PM >
 
 
Post #: 1
 
 RE: Convert Winbatch script to vbs? - 11/4/2008 10:55:04 PM   
  TomRiddle


Posts: 191
Score: 4
Joined: 2/7/2008
Status: offline
Don't worry vbscript can't do it and Winbatch sux you have to pay for it. Besides I got hold of some c# books and knocked up a little command line utility that does it instead.
I am still actively scripting but my aspirations are mastering c# and Powershell one day. But both seem to be a more massive jump than what vbscript ever was.

(in reply to TomRiddle)
 
 
Post #: 2
 
 RE: Convert Winbatch script to vbs? - 11/4/2008 11:47:12 PM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
I don't remember seeing this back in August, but it can also be done via AutoIT, which is free.

Found this on AutoIT's forums and is just a snippet from a much larger script

; If the system is locked then reset the timer
  checkLock()

Func checkLock()
  $locked=DllCall("user32","Long","OpenInputDesktop")
  If $locked[0] = 0 Then $start = TimerInit()
EndFunc

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to TomRiddle)
 
 
Post #: 3
 
 RE: Convert Winbatch script to vbs? - 11/5/2008 10:56:14 AM   
  TomRiddle


Posts: 191
Score: 4
Joined: 2/7/2008
Status: offline
Thanks Mike, I will check out AutoIT

(in reply to mbouchard)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Convert Winbatch script to 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