Need Help to create a VB script
Hi All,
I have to read a registry value and have to parse that value according to my requirement.
C:\Program Files\Software_name\quest\\setup.exe,0
I Have to parse the above string in such way that....it will see from Right side and when it will get "\\" it will return value from 1st char to the character before "\\"
can anybody tell me how to do that???
"C:\Program Files\Software_name\quest" this portion can be anything of any length.
I have to read a registry value and have to parse that value according to my requirement.
C:\Program Files\Software_name\quest\\setup.exe,0
I Have to parse the above string in such way that....it will see from Right side and when it will get "\\" it will return value from 1st char to the character before "\\"
can anybody tell me how to do that???
"C:\Program Files\Software_name\quest" this portion can be anything of any length.
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
pjgeutjens
13 years ago
Posted by:
captain_planet
13 years ago
Yeah. Here's a quick example. The first example is what pj describes. The second example (I believe) is what you're describing.....but either would be fine.
Dim testvalue : testvalue = "C:\Program Files\Software_name\quest\\setup.exe,0"
Dim example1 : example1 = split(testvalue,"\\")(0)
Dim example2 : example2 = Left(testvalue, InStrRev(testvalue, "\\") - 1)
MsgBox example1
MsgBox example2
Posted by:
pjgeutjens
13 years ago
Posted by:
captain_planet
13 years ago
Posted by:
anonymous_9363
13 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.