Increment Variable
Posted: 18 Jun 2008 18:10
Hey guys,
Is it possible to increment the value of a variable during an xcopy?
For example:
There are 100 files in the folder.
For the above example is it possible to increment the value of counter after one file has copied? so 1 out of 100?
Any advice is welcome
Is it possible to increment the value of a variable during an xcopy?
For example:
Code: Select all
set /a counter = 1
xcopy /d /e/ h/ y c:\folder c:\anotherFolder
There are 100 files in the folder.
For the above example is it possible to increment the value of counter after one file has copied? so 1 out of 100?
Any advice is welcome