P
Pr_ngp
Below is the dos script which I have write to search files in specific folder:
@echo off
c:
if exist c:\Data\*.txt (echo FILE_EXIST) else (echo FILE DOES NOT EXIST)
PAUSE
Now I am getting message FILE DOES NOT EXIST all the time even if the file
is there.
if i change
if exist c:\Data\*.* (echo FILE_EXIST) else (echo FILE DOES NOT EXIST)
i*.* instead of *.txt then I get FILE_EXIST message all the time even if the
file is not there.
I am not getting correct message. Any help?
Thanks in advance.
Edit/Delete Message
@echo off
c:
if exist c:\Data\*.txt (echo FILE_EXIST) else (echo FILE DOES NOT EXIST)
PAUSE
Now I am getting message FILE DOES NOT EXIST all the time even if the file
is there.
if i change
if exist c:\Data\*.* (echo FILE_EXIST) else (echo FILE DOES NOT EXIST)
i*.* instead of *.txt then I get FILE_EXIST message all the time even if the
file is not there.
I am not getting correct message. Any help?
Thanks in advance.
Edit/Delete Message