on 08-22-2011 11:04 PM
Hi gurus,
I would like to write a script ("Run OS command before Message Processing")for importing a file from a FTP based on a condition, like if file_a.txt does not exist on folder RECEIVE/TXT than import file_a.txt from location IMPORT/TXT to RECEIVE/TXT.
please provide me with some information regarding this issue.
My OS is windows NT.
Thanks
Hi Peter,
This will work for you
copy /-y \IMPORT\TXT\file_a.txt \RECEIVE\TXT
if file_a.txt exist in \RECEIVE\TXT folder then it will not copy the file otherwise it wll copy the file.
Here -y does the workk for you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
any updates?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.