IF EXIST in a ".bat"
JY
-
JY -
JY -
Hello,
I created a .bat with an "IF Exist"
"If Exist D:\fichier\*320.dat Goto....."
If I place the file, it is picked up immediately and the program performs its task.
But a copy via FTP => the file first has the format "*320.tmp" at the end of the copy, it becomes "*320.dat"
The problem is that the file is not picked up by the .bat.
If I move the file and put it back in the directory, it is handled.
Do you have an idea of the problem please ?
File becomes too "old" for the "if exist" ?
Way to make the file visible again ?
the "*" is used because the files always end with "320.dat"
I created a .bat with an "IF Exist"
"If Exist D:\fichier\*320.dat Goto....."
If I place the file, it is picked up immediately and the program performs its task.
But a copy via FTP => the file first has the format "*320.tmp" at the end of the copy, it becomes "*320.dat"
The problem is that the file is not picked up by the .bat.
If I move the file and put it back in the directory, it is handled.
Do you have an idea of the problem please ?
File becomes too "old" for the "if exist" ?
Way to make the file visible again ?
the "*" is used because the files always end with "320.dat"
Configuration: Windows XP Internet Explorer 6.0