V
VitaminB
Hi Guys,
I want to write a batch file which gets a text file from an ftp server
and appends this to en existing text file. This works with the commands
ftp, open, get and then finally copy the new to the existing file.
BUT: I want to create a new file whenever no file (in the example:
C:\bla.txt) exists. How can I do this? Can I append/get directly with
an ftp command and if no file exists just create a new one?
open nsasasnnn.de
anonymous
get /cmm/bla.txt C:\bla_new.txt
quit
Call copy C:\bla.txt+C:\bla_new.txt C:\bla.txt /b
I want to write a batch file which gets a text file from an ftp server
and appends this to en existing text file. This works with the commands
ftp, open, get and then finally copy the new to the existing file.
BUT: I want to create a new file whenever no file (in the example:
C:\bla.txt) exists. How can I do this? Can I append/get directly with
an ftp command and if no file exists just create a new one?
open nsasasnnn.de
anonymous
get /cmm/bla.txt C:\bla_new.txt
quit
Call copy C:\bla.txt+C:\bla_new.txt C:\bla.txt /b