1.

Solve : How to: I have a file whose filename contains blanks...?

Answer»

I have a file whose filename contains blanks... I am ATTEMPTING to CHECK for the existance of this file using a DOS script... and have not been ABLE to find the proper delimiters so that I can test for the existance of the file. Sample would be:
====================
IF EXIST Some File Name.xld
GOTO FOUNDFILE
====================
How can I prioperly DELIMIT the filename Some FIle Name.xld ? I have tried "Some FIle Name.xld" without success.quotes.
Where are you looking for the file? if you don't change the directory or include the directory spec, it might not find it.If the filename contains spaces it MUST be contained within quotes

i.e. IF EXIST "looking for this file.doc"
GOTO FOUNDFILE



Discussion

No Comment Found