|I tried that!|
That works in the Command Prompt in Windows XP, though I could not find where this feature was documented in the on-screen help ("IF /?"). I need to do this from a boot floppy running MS-DOS 7.10. In my testing in real DOS it "usually" behaved like the following:
IF NOT EXIST "%Image_To_Path%" ECHO It's there.
IF EXIST "%Image_To_Path%" ECHO It's NOT there.
By "usually" I mean the results depended on what the path looked like (ie. Did it include a drive letter, a path, both, end in backslash?). I thought a directory was a special type of file, and so it should work, but no luck this way!