The below code is what I'm trying to compile, but dev-c++ is sure something is wrong. Is this not the proper way to input a string (usbdriveletter) into the command prompt?
You've lost me. Is there not a simple way to do this in one line?
edit-I kind of see it now. All the ones in the 2nd half were just examples of how it could be laid out I see.
I have to go with Grey Wolf on this. You need to split it all out into its component parts to get to the bottom of your problem. Maybe you could then start putting it back together in a single line a bit at time if you really wanted to do that. I have to say if I was a developer having to modify that line I wouldn't be calling you anything nice for having written it like that.
Sorry, Yes it builds a string from component parts, because you need to build a string such as "copy "c:\some path\file.txt" c:\some other path\file.txt" ", having a lot of \" and other escaped characters around can be a pain to maintain later.