| 1. |
Solve : How Extract Value between Parethesis? |
|
Answer» I need to extract the value between parentheses into a variable, I am not sure if there an easy way to do it. I need to extract the value between parentheses into a variable, I am not sure if there an easy way to do it. 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. VBS needs a board of its own. p.s.: VBS failed to assign testqm and running to variables. Casper failed to read instructions from the original poster? Quote from: billrich on November 09, 2009, 05:29:39 PM 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. Quote VBS needs a board of its own.tell that to the administrator of the site. Quote 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. Quote 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 thumbSalmon Trout, thanks for the response, I never realize that with DELIM, one can specify more than one expression. Thanks to all for your response. The reason I did not ask for VBScript, its because none of my servers have VB on it....Quote from: et_phonehome_2 on November 10, 2009, 05:48:17 AM its because none of my servers have VB on it....its vbscript, not VB.!! what WINDOWS server version are you running ? |
|