Unsolved
This post is more than 5 years old
2 Intern
•
2K Posts
0
17927
January 13th, 2004 12:00
toggle vbs script or batch file
OK, a few days ago I downloaded "eject.exe" and put it in my system32 folder. I can now open and close my CD Rom from the command line. I made a batch file as follows:
"eject e:" (open CD drawer)
"pause" (gives me a chance to load CD, then I press any button on keyboard for the next command to execute:)
"eject e: /l" (closes the CD drawer)
Is there a batch or vbs script the will "toggle" the opening and closing of the CD drawer?
So all I have to do is click on an icon shortcut for the following to occur:
If open, close
If closed, open
Thanks. (I already searched Google without luck)
"eject e:" (open CD drawer)
"pause" (gives me a chance to load CD, then I press any button on keyboard for the next command to execute:)
"eject e: /l" (closes the CD drawer)
Is there a batch or vbs script the will "toggle" the opening and closing of the CD drawer?
So all I have to do is click on an icon shortcut for the following to occur:
If open, close
If closed, open
Thanks. (I already searched Google without luck)
No Events found!


