So, i want a .bat that copies an entire directory to another directory.
I tried:
[code]
@echo off
xcopy "C:\Program Files\Steam\steamapps\SourceMods\portalthemod" "C:\Users\Andreas\Documents\My Dropbox\Public\Portal Mod"
[/code]
But that only copies the FILES in the directory, and not the directories.
Help!
[code]
@echo off
xcopy "C:\Program Files\Steam\steamapps\SourceMods\portalthemod" "C:\Users\Andreas\Documents\My Dropbox\Public\Portal Mod" /D /E /C /R /I /K /Y
[/code]
/E Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T.
Works perfect, thank you!
No problem.
Sorry, you need to Log In to post a reply to this thread.