Jump to content

Recommended Posts

Posted (edited)

That was an example of nested quotes, which you will need.

Run will work

Try

Run("regedit.exe blah",@WindowsDir)

ShellExecute is for, as an example, ShellExecute("SomeDoc.pdf")

Edited by blakel
Posted

ShellExecute( "regedit.exe", "/E C:\path\file with space.reg HKEY_CURRENT_USER\path with space\test" )

please correct this script for me not my replacing anythign in it but by adding something small that i am missing for so long.

I CANT SLEEP i need this done lol

^_^

Posted

$rslt = RunWait(@WindowsDir & '\regedit.exe /e "C:\Documents and Settings\Administrator\My Documents\file.reg" "HKEY_CURRENT_USER\test"',@WindowsDir,@SW_HIDE)

test $rslt for error

  • 1 year later...
Posted

I think if we have a virus which disable regedit 2 codes are Unable to run

I use it script but dont know why doesn't it run?

1st time i run it worked well but now isnt working :blink:

$URL = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
$MyDocsFolder = "::{450D8FBA-AD25-11D0-98A8-0800361B1103}"
            $var = FileSaveDialog( "Save to a registry file (*.reg)", $MyDocsFolder, "Registry Files (*.reg)", 2+16)
            If Not @error Then
                ;MsgBox(0,"","REGEDIT /E "& FileGetShortName($var)&".reg "&''&_GUICtrlStatusBar_GetText ($StatusBar, 1)&'')
                _RunDOS("REGEDIT /E "& '"'&FileGetShortName($var)& '.reg" "'&$URL&'"')
            EndIf

4m848p10.gif 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...