Using a .CMD file on windows 7 how can you copy a file regardless of the folder it's in?   Example:   In folder c:\temp\Junk.abc  I have a file called Myfile.dll    Also in this same folder I have another file called   DoCopy.cmd.    What command in DoCopy.cmd do I use to copy any file called *.dll in Junk.abc to the location I choose?   And Junk.abc will vary per machine.   

Answer Summary:
FOR %%G IN (MyFile.txt) DO copy %%G c:\MyLocation
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

1

got it.     FOR %%G IN (MyFile.txt) DO copy %%G c:\MyLocation

Answered 04/16/2012 by: mhsl808
Fifth Degree Brown Belt

Please log in to comment
Answer this question or Comment on this question for clarity

Share