Batch File to load CD drive

dbadouraly
dbadouraly used Ask the Experts™
on
Hello experts,
In our network autorun is disabled, however on some workstation we need to allow autorun to start when they insert a CD. is there a way to create a batch file to load the cd automatically and open the program? here the autorun.inf on the CD:

[AUTORUN]
OPEN=APPS\MIV2Cdr.exe /p=APPS\CONFIG.TXT
ICON=APPS\MIV2Cdr.exe,1
LABEL=Doe,John, 03-23-2011 03:27:41 AM
SHELL\VIEW\COMMAND=APPS\MIV2Cdr.exe /p=APPS\CONFIG.TXT
SHELL\VIEW=View Radiological Data

Thank you for your help.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Gerwin Jansen, EE MVETopic Advisor
Most Valuable Expert 2016

Commented:
How do you expect that this batch file will run? As autorun is disabled and you want some batch file to perform the 'autorun' function then you would either have to start that batch file after the CD is inserted or have the batch file run continuously, monitoring CD drives. What is it you require / expect?
Since you have autorun disabled, re-enabling it would seem to go around the idea of why it was disabled in the first place.

Perhaps the following solution might work:
1. Pop in one of the patient's disks  - any one, this just has to be done once.
2. Right-click on the desktop and create a new shortcut.
3. In the "Location of the item:" put in: E:\APPS\MIV2Cdr.exe /p=E:\APPS\CONFIG.TXT
4. Click Next and enter a name for the shortcut - like "View Patient XRays"
5. Click Finish.

Note: instead of E: use the actual drive letter of your CD/DVD-ROM.

What will happen, is when someone pops in a new disc it will not auto-launch. But, you can train them to simply double-click on the icon to see the patient films.

That being said, if there is no disc in the drive, the shortcut won't do anything.

Seems to be the best middle-ground case.

Author

Commented:
thank you that's exactly what I needed

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial