on 02-05-2007 8:06 AM
hi all,
i have a file-to-file scenario.Now i have to pick the latest file from FTP folder based on timestamp.All the files are named in yyyymmdd format .I came to know that i can run an OS command before message processing to delete the old files and keep the latest file in the folder.
But i do know know how to write the script for this particular requirement.Can anybody please help me out with the code???
regards,
Nisheeta
HI,
If you want to delete filenames from Adapter use the following sample code:
File adapter OS Command: D://server_dir//subdir//myCMDfile.bat %F
Batch file:
del %1 new_filename_with_path
OR
Please see the below links
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
Hope this solves your problem.
Regards
Chilla..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you need or want to execute specific OS command via FTP you can use this guide:
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/rzaiq/rzaiqrcmd.htm
But the support of OS command depends from with FTP server you are connecting to.
Regards,
Sandro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.