cybercop23
IS-IT--Management
Hi all.
I'm trying asign the result of a find command to a variable that I can check. If the result is what I expect I can continue processing, else wait some more. This is what I mean:
:checkdone
set checkdone=dir done*.txt | find /c "done"
if checkdone == 5 goto done
sleep 60
goto checkdone
The set command above is not working. The results of the dir and find commans wihtout the set, returns a number. How can I assign the result of these two command to a varaible?
Thanks in advance for any suggestions.
I'm trying asign the result of a find command to a variable that I can check. If the result is what I expect I can continue processing, else wait some more. This is what I mean:
:checkdone
set checkdone=dir done*.txt | find /c "done"
if checkdone == 5 goto done
sleep 60
goto checkdone
The set command above is not working. The results of the dir and find commans wihtout the set, returns a number. How can I assign the result of these two command to a varaible?
Thanks in advance for any suggestions.