DIGIT-ARC read-only archive · snapshot: July 23, 2026

cannot execute copy command in the command line way

9 posts · originally from https://geek.digit.in/community/threads/cannot-execute-copy-command-in-the-command-line-way.166346/

mang
mang Original post #1
Nov 18, 2012 at 6:19 PM
I have one file 'Easy Unlock Method With SAM.mp4' which is in a pendrive, I would like to copy this file to Hard disk E:\ using the command line but some how i could not do it
I switch from C: to I: which is the USB pendrive and give the command copy Easy Unlock Method With SAM.mp4 E: ( not working)
copy Easy Unlock Method With SAM.mp4 E:\ (not working)
copy I:\Easy Unlock Method With SAM.mp4 E:\ ( not working)

What should I Do ?
Flash
Flash #2
Nov 18, 2012 at 6:22 PM
Check whether you're having access over to the destined drive.
krishnandu.sarkar
Nov 18, 2012 at 6:24 PM
Which OS you are in?

If I remember, the file name with spaced are not recognized in that way in XP. it would be something like Easy~1.mp4 or something like that. Do a DIR command to check what the file name is.

In Windows Visa and 7, the file names with spaces are like "Saved Games". NOTE : Within " " quotes.
Flash
Flash #4
Nov 18, 2012 at 6:24 PM
I guess, its the file name with spaces that denied you..
try
Code:
COPY I:\"Easy Unlock Method With SAM.mp4" E:\
krishnandu.sarkar
Nov 18, 2012 at 6:28 PM
^^As I said, ofcourse it's. DOS doesn't recognize file name with spaces. Instead he needs to use "" as you and I both said above.

I was not sure. But thanks for confirming :)
mang
mang #6
Nov 19, 2012 at 12:03 PM
It is Win 7 working perfectly I hope it is the "" syndrome i will try by using the Quote
krishnandu.sarkar
Nov 19, 2012 at 12:05 PM
In that case use "" and everything will work fine :)
mang
mang #8
Nov 19, 2012 at 7:13 PM
Thanks you all for your valuable Tips. The double Quote do the job. copy command.jpg
Flash
Flash #9
Nov 19, 2012 at 10:38 PM
Why are you copying over "Command line".
Are you learning DOS commands?