Reputation: 64
I'm trying to create a batch file that copies one folder to the current path open in command prompt.
This is the code I have, but it doesn't work.
@echo off
xcopy /s c:\Users\Alexander\Documents\Other d:\%cd%
pause
Upvotes: 1
Views: 4222
Reputation: 2229
Over complicating things...
Just use ".", which means current directory, i.e.:
xcopy /s c:\blah\blah .
Upvotes: 3