KiwiNinja
KiwiNinja

Reputation: 63

Batch File Copy "Syntax is Incorrect"

So i've done a lot of Batch file stuff, but this is confusing me.

I have "copy test.txt C:\Users\Public\Videos\Sample Videos" in my batch file, and it returns "The syntax of the command is incorrect". Im copying the txt file from my flash drive onto my computer so im trying to keep the current directory of the flash drive, then obviously put it into my test folder.

I feel like this should be simple but I am so confused as to why its not working.

Upvotes: 1

Views: 12877

Answers (1)

J03L
J03L

Reputation: 324

You would do this as the code:

copy "test.txt" "C:\Users\Public\Videos\Sample Videos"

Upvotes: 7

Related Questions