Have to display error message..

September 14, 2011 at 00:39:46
Specs: Windows xp
HI Experts,

I have a requirement like to display an error message if batch file doesnt find .CSV file in the drive.

can anyone help me out...pl


See More: Have to display error message..

Report •


#1
September 14, 2011 at 06:30:10
if not exist filenname.csv echo error

Report •

#2
September 16, 2011 at 08:19:06
I usually have an error section. It looks just like Jowah's code except it looks like this:

if not exist filename.csv goto error

:error
echo File not found
goto (where ever)


Report •
Related Solutions


Ask Question