There is no doubt that the batch solution is much better than the the VBS attempt above. Plus Et_Phone, the original poster, requested Batch.
no, you lost soul. the vbscript gets all text between parenthesis , no matter how many. The batch only gets 2nd and 4th.
VBS needs a board of its own.
tell that to the administrator of the site.
p.s.: VBS failed to assign testqm and running to variables.
trivial trivial. you are always harping on trivial things. you sound like a woman to me.
Casper failed to read instructions from the original poster?
the OP says DOS only, which i will assume he meant cmd.exe , so until he says "i don't need a vbscript", i will still keep posting vbscript solutions.. so what you gonna do about it ? go suck a thumb