Hi,
New to batch scripting & have not been able to find examples or info on the following...
want to assign the output of the 'find' command to a variable, in batch script.
eg: MyVariable = find /c "myString" c:/myfile.log
so, looking for the number of times myString appeard in myFile & assigning the output to a variable.
Win2000 help didn't have any info, and an internet search was fruitless... so still don't know how to make this 'work'.
Any pointers would be appreciated,
Thanks.
P.
New to batch scripting & have not been able to find examples or info on the following...
want to assign the output of the 'find' command to a variable, in batch script.
eg: MyVariable = find /c "myString" c:/myfile.log
so, looking for the number of times myString appeard in myFile & assigning the output to a variable.
Win2000 help didn't have any info, and an internet search was fruitless... so still don't know how to make this 'work'.
Any pointers would be appreciated,
Thanks.
P.