Jump to content

Reg Export


Go to solution Solved by ioa747,

Recommended Posts

Good day,

ShellExecuteWait('REG', 'EXPORT "HKEY_LOCAL_MACHINE\SOFTWARE\FabFilter" "' & $_sSrcPath)

1) Launch the above one time...Ok!
2) Launch the above a second time...an "...already exists..." dialog "obviously" appears.
• See attached image...

Question: Is there any way to suppress this dlalog...and simply overwrite the destination?

Any assistance in this matter would be greatly appreciated!

Thank you for your time...appreciated!

image.png

hklm.reg

Edited by mr-es335
Added missing data...
Link to comment
Share on other sites

  • Solution

https://ss64.com/nt/index.html

REG EXPORT [ROOT\]RegKey FileName.reg [/Y] [/reg:32 | /reg:64]

ShellExecuteWait('REG', 'EXPORT "HKEY_LOCAL_MACHINE\SOFTWARE\FabFilter" "' & $_sSrcPath & '" /Y')

 

Edit: informative
I also noticed that the post order above is problematic
assuming your path is this   $_sSrcPath = "C:\Me\hkIm.reg"

with the command below the path it gives us is
ShellExecuteWait('REG', 'EXPORT "HKEY_LOCAL_MACHINE\SOFTWARE\FabFilter" "' & $_sSrcPath)

EXPORT "HKEY_LOCAL_MACHINE\SOFTWARE\FabFilter" "C:\Me\hkIm.reg     * " is missing

the right one should have been
ShellExecuteWait('REG', 'EXPORT "HKEY_LOCAL_MACHINE\SOFTWARE\FabFilter" "' & $_sSrcPath & '"')

which was merged with the dialog confirmation switch
ShellExecuteWait('REG', 'EXPORT "HKEY_LOCAL_MACHINE\SOFTWARE\FabFilter" "' & $_sSrcPath & '" /Y')

Edited by ioa747
correction

I know that I know nothing

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...