Batch CD-autorun?

Simon February 1, 2009 at 14:56:13
Specs: Windows XP
Hi, I'm trying to create a batch-file that automatically runs when a cd is inserted into the cd-drive... I have made a file that has to be run manually, but I don't know if it is even possible to find the drive, also because the drive letter keeps changing.
Can you help?
Thanks in advance

See More: Batch CD-autorun?

Report •

February 2, 2009 at 08:14:20
If the script is on the CD, then you'd say:
set drive=%~d0

Report •

February 2, 2009 at 12:34:21
also going by the assumption razor is, if the batch is on the cd just use %CD% to get the current directory

Report •

February 2, 2009 at 23:19:34
I'm not completely sure if it would work properly but what about a autorun.inf to start the script?


I know this is very obvious but I'm not sure if you had already got that far.

Report •

Related Solutions

Ask Question