Hi I am trying to do an FTP dos command where I have the login doing okay. I am able to delete the files but if the files are not located in the webserver the .bat file keeps going. I would like the .bat file to stop if the file is not found in the webserver.
Also I am unable to do a wildcard(*) for the files so I have my program to list the files instead which can be long and tedious, does anyone know of a way? Below is what I have so far and it does not seem to work with the 'if exist'.
Thanks in advance!!
ftp -s:%0
GoTo done
open webserver.com
userid
password
cd webedi
if exist 0114891880.html del 0114891880.html
if exist 0114891880.htm del 0114891880.htm
if exist 0114901820.html del 0114901820.html
if exist 0114901820.htm del 011901820.htm
goto end
bye
Also I am unable to do a wildcard(*) for the files so I have my program to list the files instead which can be long and tedious, does anyone know of a way? Below is what I have so far and it does not seem to work with the 'if exist'.
Thanks in advance!!
ftp -s:%0
GoTo done
open webserver.com
userid
password
cd webedi
if exist 0114891880.html del 0114891880.html
if exist 0114891880.htm del 0114891880.htm
if exist 0114901820.html del 0114901820.html
if exist 0114901820.htm del 011901820.htm
goto end
bye