on 03-01-2012 5:51 AM
Hi all
we are using xcopy commmand in the Run OS command in the receiver communication channels.
xcopy %F destination folder -y
this is actually working fine.
we actually want to use the copy command instead of xcopy
we have tried to give
copy %F destination folder -y , but it not working . DId anyone know the exact format of the copy to use in the communication channel please.
Any help is highly appreciated
Thanks
Hi XI Starter,
Actually "copy %F destination" should work fine. My doubt is that -Y option that you are using. It means that a confirmation prompt should be displayed. So I would suggest trying it that way:
copy %F destination /Y
This should let you suppress the confirmation prompt and your scenario should work correctly.
Hope this helps,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Below links may be useful to you
https://wiki.sdn.sap.com/wiki/display/XI/SAP%20XI%20File%20Adapter%20OS%20Command%20Line%20Feature
Regards,
Venkata Ramesh
hI
It's your receiver file channel NFS or FTP?
In ftp case, you must do a remote shell to execute the copy...
Regards,
Carme
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear XI Starter,
I think now is the moment to ask this question: since xcopy worked fine, why do you want to switch to copy?
If you insist on that change, try debugging the OS command just like Michal has described in one of his blogs here:
So simply you add > "somelogfile.txt" to the initial statement. The final command to execute:
cmd.exe /C "copy %F destination /Y > log.txt"
Hope this helps,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.