Jump to content

regreed help


Recommended Posts

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
Link to comment
Share on other sites

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

^_^

Link to comment
Share on other sites

  • Developers

something like:

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • 1 year later...

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 

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...