Jump to content

Featured Replies

Posted

Okay as the title implies, I have a question about the copy command, in windows xp. I am trying to make a simple batch program that just copies a file to a location. I thought this would be a simple task, so I looked at the windows help in the dos window for the copy command and set up the batch file....but it doesnt copy the file.

 

 

This is what I have so far:

 

copy file.txt C:\Documents and Settings\All Users\Desktop

 

This didnt work so in frustration I combined that with various other things in the code like identifying the file as an ASCII file, to no avail. It just doesnt work and it is frustrating me because it was supposed to be so simple and I had it all planned out in my mind to be very simple...

 

 

Now that I sound like a nutcase....is there anyone that knows what i'm doing wrong?

 

 

(oh yeah and please dont flame or anything, I know this is a real bad n00b question and I hesitated asking on this forum for fear of being flamed to death but I know you guys in this forum know a lot about programming)

 

 

 

Thanks in advance,

 

 

Sniper_kyle

copy "file.txt" "C:\Documents and Settings\All Users\Desktop"

 

You need quotes around any text that contains a space.

Guest
This topic is now closed to further replies.