Jump to content

Recommended Posts

Posted (edited)

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...
  • Solution
Posted (edited)

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

Posted

ioa747,

First...thank for update on the missing file....which i have summarily added...

Second, thanks for the clarification on "ShellExecuteWait".
• It would appear that I have not really understood the purpose of this function.

  • 5 months later...

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
  • Recently Browsing   0 members

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