Bat File Copying Within The Same Folder in Programming Posted October 26, 2009 · Report reply I've used the .\ in the past to copy a file that is in the same folder as my bat file successfully however for some reason this time its not working unless I put in the entire source path. Any suggestions?Bat file simply says: xcopy /d .\"filename.xml" "C:\Program Files\Vendor Name\Application Name" /s /yI've also tried:xcopy /d .\"filename.xml" "C:\Program Files\Vendor Name\Application Name\filename.xml" /s /yHowever, if I put:xcopy /d "networkfileshare\folder\filename.xml" "C:\Program Files\Vendor Name\Application Name" /s /ythings work fine however we are moving in a different direction and require things to work from the same folder without the file share.
Bat File Copying Within The Same Folder
in Programming
Posted · Report reply
I've used the .\ in the past to copy a file that is in the same folder as my bat file successfully however for some reason this time its not working unless I put in the entire source path. Any suggestions?
I've also tried:Bat file simply says:
However, if I put:
things work fine however we are moving in a different direction and require things to work from the same folder without the file share.