Jump to content

Recommended Posts

Posted

Hi everyone. I'm using some code that will allow me to set the %cdrom% variable. This works, however if I use it on a PC with memory card readers then I get errors, which state the disk is not accesible.

Anyone have any ideas how to get around this?. Thanks

echo off

for %%a in (a b c d e f g h i) do (
if exist %%a:\Known.File (
SET CDROM=%%a:
)
)

echo %CDROM%

pause


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...