PDA

View Full Version : Just a quickie...


Anchuvi
07-19-2002, 11:55 AM
I am trying to copy a file on my system using MEL. What is wrong with this line -

system ("shell copy E:/Transfer/test.bmp E:/");

I am running Windows 2k btw :o)

alexx
07-19-2002, 01:35 PM
2 things:

one is that dos commands usually expect back slashes (not to mess them up with the forward slashes of options)

you dont need the "shell" in there.. i donīt even know what it should be good for :)

that one works:

system ("copy E:\\Transfer\\test.bmp E:\\");

cheers

alexx

alexx
07-19-2002, 01:50 PM
and btw:

i strongly recommend to use xcopy instead of copy since it has much more options and better error returns

CGTalk Moderation
01-13-2006, 11:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.