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


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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