any xcopy experts?
#1
any xcopy experts?
Code:
@echo off pause for /F "tokens=*" %%* in ('dir /ad /b *') do call :Sub %%* goto :eof :sub echo Current folder: %* mkdir D:\backup\%* xcopy "D:\path\%*\"*.* "D:\backup\%*\"*.* /e /v /c /i /h /y /k >>D:\backup\copytest.txt 2>> D:\backup\error.log :eof
I'm trying to log errors into a separate file. Which is working but will only display the error and not the path it was trying. Which isn't very helpful
Access denied
File not found - *.*
Anyway to do log the path it was trying in the error log?
Thanks
#7
Scooby Regular
get hold of a copy of securecopy
Secure Copy server and data consolidation with seamless integration and migration with copying files, shares, groups and directories - AMT Software
awsome bit of kit
Secure Copy server and data consolidation with seamless integration and migration with copying files, shares, groups and directories - AMT Software
awsome bit of kit
Trending Topics
Thread
Thread Starter
Forum
Replies
Last Post
The Joshua Tree
Computer & Technology Related
18
11 September 2015 09:24 PM