davezub Posted July 21, 2005 Share Posted July 21, 2005 Anyone know of a way to get regwrite to append on a reg_multi_sz operation? I'm trying to use the function with the PendingFileRenameOperations reg key and need it to append. Thanks. Link to comment Share on other sites More sharing options...
FuryCell Posted July 21, 2005 Share Posted July 21, 2005 (edited) Anyone know of a way to get regwrite to append on a reg_multi_sz operation? I'm trying to use the function with the PendingFileRenameOperations reg key and need it to append.Thanks.<{POST_SNAPBACK}>Try something like this pseudocode:$Key=<Key Here> $ValueName=<ValueName Here $OldVal=RegRead($Key,$ValueName) $NewVal=<New Value Here> RegWrite($Key,$ValueName,"REG_MULTI_SZ",$OldVal & @LF & $NewVal) Edited July 21, 2005 by SolidSnake HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
davezub Posted July 21, 2005 Author Share Posted July 21, 2005 Try somthing like this pseudocode.$Key=<Key Here> $ValueName=<ValueName Here $OldVal=RegRead($Key,$ValueName) $NewVal=<New Value Here> RegWrite($Key,$ValueName,"REG_MULTI_SZ",$OldVal & @LF & $NewVal)<{POST_SNAPBACK}>Hehe, thanks, sorry in a pinch and should have tried to figure out before I posted, came up with the same thing - LOL.$PendingFilename = RegRead("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager", "PendingFileRenameOperations") $PendingFilename = $PendingFilename & @LF & "\??\C:\WINDOWS\System32\poweroff.exe" & @LF & "!\??\c:\ldclient\scrap.exe" msgbox(0,"test", $PendingFilename) Link to comment Share on other sites More sharing options...
FuryCell Posted July 21, 2005 Share Posted July 21, 2005 Hehe, thanks, sorry in a pinch and should have tried to figure out before I posted, came up with the same thing - LOL.$PendingFilename = RegRead("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager", "PendingFileRenameOperations") $PendingFilename = $PendingFilename & @LF & "\??\C:\WINDOWS\System32\poweroff.exe" & @LF & "!\??\c:\ldclient\scrap.exe" msgbox(0,"test", $PendingFilename)<{POST_SNAPBACK}>No Problem. HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now