How can I do an Instrrev in kix without upgrading to newer versions??
I dont really want to have to work out the length of the string then do an a check on every counter and store position and then work out from that.. Any Ideas... Damn script... why cant this one run in wsh. David |
Big F off BTTT
|
seen as you lot are useless ;) I have had to write something myself.. it is to do dynamic registry imports and exports to and from a file that is delimited with commas but the data needs to be able to contain commas... so I did the following... bit messy, will tidy later.. yeah right...
$strTest="HKEY_CURRENT_USER\Software\Test\test\tes t,TestKey,DataValues,AnotherValue,and another,blah,blah,blah,REG_DWORD" $iDelim1Pos=Instr($strTest,",") $iDelim2Pos=Instr(Substr($strTest,$iDelim1Pos + 1, Len($strTest)),",") $iStrDataLen = $iDelim2Pos $iDelim2Pos = $iDelim2Pos + $iDelim1Pos $iDelim3Pos = $iDelim2Pos + Instr(Substr($strTest,$iDelim2Pos + 1,Len($strTest)),"REG") -1 $strKeyName = Substr($strTest,1,$iDelim1Pos -1) $strValueName = Substr($strTest,$iDelim1Pos + 1,($iStrDataLen -1)) $strData = Substr($strTest,$iDelim2Pos + 1,( $iDelim3Pos - $iDelim2Pos - 1)) $strRegType = Substr($strTest,$iDelim3Pos + 1,(Len($strTest) - $iDelim3Pos + 1)) ? $strKeyName ? $strValueName ? $strData ? $strRegType David |
All times are GMT +1. The time now is 09:56 AM. |
© 2024 MH Sub I, LLC dba Internet Brands