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.
eg: MyVariable = find /c "myString" c:/myfile.log
where MyVariable contains the count of how may times 'myString' appeared in 'myFile'.
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.
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.
eg: MyVariable = find /c "myString" c:/myfile.log
where MyVariable contains the count of how may times 'myString' appeared in 'myFile'.
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.