Search found 1 match
- 09 Jun 2010 03:07
- Forum: DOS Batch Forum
- Topic: variable in cycle
- Replies: 3
- Views: 4547
variable in cycle
hello! i have the next code: FOR /f "tokens=1 usebackq delims=," %%a in (`dsquery computer "OU=Users PC,OU=Computers,OU=Office,DC=gpi,DC=domain,DC=com"`) do ( rem set /a zzz=%zzz%+1 set zzz=%%a echo %zzz% echo %%a ) pause when it's running, i get the right value of %%a for all st...