Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Stopping auto start on a cd

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Stopping auto start on a cd
  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 >>
 Stopping auto start on a cd - 5/16/2007 7:13:19 AM   
  phil999

 

Posts: 38
Score: 0
Joined: 5/4/2007
Status: offline
Next mission is for the hta when opened to HOLD SHIFT DOWN until the HTA is closed as i dont want any cd's autoloading (my hta is a software installer and i only want the cd's installed when requested by the listbox.

I know this can be done in the registry but that requires a reboot to work.  I dont mine if it just send the shift command when a cd is inserted but during the period the app is opened there will be muliple cd's inserted.

I have tried various things all to no effect any pointers in the right direction?

Phil
 
 
Post #: 1
 
 RE: Stopping auto start on a cd - 5/18/2007 12:09:32 AM   
  dm_4ever


Posts: 2723
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
I tried playing with this yesterday but had no luck.

I tried something like this

Dim objFSO : Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim objCD : Set objCD = objFSO.GetDrive("D:\")

Do While Not objCD.IsReady
   WScript.Sleep 500
Loop

The problem with this is that I couldn't figure out how to hold the shift long enough for it to prevent the CD from loading.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to phil999)
 
 
Post #: 2
 
 RE: Stopping auto start on a cd - 5/21/2007 11:15:04 PM   
  phil999

 

Posts: 38
Score: 0
Joined: 5/4/2007
Status: offline
The only way i could find was to change the registry rebootboot and then do the same on exit it works so thats fine.

(in reply to phil999)
 
 
Post #: 3
 
 
 
  

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 >> Stopping auto start on a cd 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