What is 'enviroset'? What version of 'DOS' (i.e., Windows) are you
using? An excellent source of information is the alt.msdos.batch
newsgroup.
ifexist <drive, path, filename> then <whatever command>
(I used it in DOS 6, but a warning: When I tried it with diskettes it worked
only if any diskette was in drive A: and if A: was empty, the batch file
came to a halt. Probably you can fix that, using errorlevel or error code
returns.
Make it easy,
Erol
Jill McCrea <mcc...@tdbank.ca> wrote in message
news:eUvzM7u0#GA.222@cppssbbsa03...
Here's an example for the c drive.
DIR/A-D/B/S c:\*.* |FIND.EXE "filename.any" >nul
IF not errorlevel=1 SET found=yes
Regards,
Outsider