IF EXIST in a ".bat"

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"
Configuration: Windows XP Internet Explorer 6.0

1 answer

  1. dubcek Posted messages 18627 Registration date   Status Contributor Last intervention   5 660
     
    Hello
    do you re-run the .bat after the FTP?
    0
    1. JY
       
      The .bat runs from 8:00 to 21:00, continuously "scanning" the directory.
      0