Copy

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
kek
Posts: 1
Joined: 29 May 2017 13:43

Copy

#1 Post by kek » 29 May 2017 13:45

mkdir "%USERPROFILE%\My Documents\%name%"
copy music.mp3 "%USERPROFILE%\My Documents\%name%"

How would I correctly define music.mp3 :?: :(

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: Copy

#2 Post by penpen » 31 May 2017 16:00

I think i don't understand your question, because the only correct anwer i see is:
(Somehow) Create a file called "music.mp3" located in the same directory as your script.


penpen

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Copy

#3 Post by ShadowThief » 31 May 2017 19:43

Or, if you don't feel like moving music.mp3 to the current directory, you can pass the full path to copy instead.

Code: Select all

copy "C:\wherever\your\file\is\music.mp3" "%USERPROFILE%\My Documents\%name%"

Post Reply