|
Answer» Code: [Select]ECHO. XCOPY a.* C:\Users\Lutcikaur\Desktop /-Y GOTO END thats what i have right now, and it will copy a file there. if i try and go onto my windows XP and use C:\Documents and Settings\Lutcikaur\Desktop instead if C:\Users\Lutcikaur\Desktop it will not work, and i am horridly unsure why.
Im trying to make a way to copy files quickly because i switch computers often and i just want to be able to plug in my flashdrive and dump my data to my XP LAPTOP from my vista desktop. i already have the working code (TOP) that goes to my vista.
My only thought would be because of the space in Documents and Settings, because i can dump the files into C:\ directly.Enclose the OUTPUT path in double quotes i.e. "C:\Documents and Settings\Lutcikaur\Desktop\"
& Welcome to the CH forums.thanks! i just realized that that would have been the PROBLEM right as i was checking for responses, its just like in html and im glad to be here. tryin to learn bat files and c++ at once, along with html for my site and im gettin tidbits at a time. Thanks again!you could also use "%userprofile%\Desktop\", if you have other users, or just want to make the batch file a few bytes shorter, heh
|