Search found 3 matches

by lienlee
27 Jun 2011 06:04
Forum: DOS Batch Forum
Topic: Batch script - xcopy and log
Replies: 1
Views: 2765

Batch script - xcopy and log

Hi Guys, I have the following code here but not sure why isnt it working..Please note that is the format. I believe there is an error for having it too long? Please also note that "&Q192&" etc. are excel cells If someone can help me fix the following I would appreciate it =) set sr...
by lienlee
09 Jun 2011 09:57
Forum: DOS Batch Forum
Topic: xcopy - Log and xcopy skip to next.
Replies: 3
Views: 3958

Re: xcopy - Log and xcopy skip to next.

@echo on setlocal set /a counter=0 ( xcopy1 ) 2>&1>>copylog.txt && set /a counter+=1 ( xcopy2 ) 2>&1>>copylog.txt && set /a counter+=1 if %errorlevel% equ 0 (echo success >> copylog.txt) else (echo failure >> copylog.txt) echo.%counter% of xcopys were run successfully >> cop...
by lienlee
09 Jun 2011 08:43
Forum: DOS Batch Forum
Topic: xcopy - Log and xcopy skip to next.
Replies: 3
Views: 3958

xcopy - Log and xcopy skip to next.

Hi Guys! I'm new to the forums and a complete novice at dos batch. I have the following code here to log my xcopy scripts and run the xcopy @echo on setlocal set /a counter=0 xcopy1 >> copylog.txt && set /a counter+=1 xcopy2 >> copylog.txt && set /a counter+=1 if %errorlevel% equ 0 (...