instrrev kix 3.63 how?
#1
Scooby Regular
Thread Starter
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
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
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
#3
Scooby Regular
Thread Starter
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
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
$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
Thread
Thread Starter
Forum
Replies
Last Post
ChefDude
Computer & Technology Related
4
24 December 2007 11:56 PM
David_Wallis
Computer & Technology Related
5
26 September 2005 10:21 AM