cancel
Showing results for 
Search instead for 
Did you mean: 

xcopy command in the file communication channels

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hello

we have tried to " copy %F destination /Y " and also tried " copy %F destination " . But both seems to be not working. Any other suggestions please

very strange behaviour

Thanks

Former Member
0 Kudos

Answers (2)

Answers (2)

Former Member
0 Kudos

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

former_member184681
Active Contributor
0 Kudos

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