mr-es335 Posted September 9, 2024 Posted September 9, 2024 (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! hklm.reg Edited September 9, 2024 by mr-es335 Added missing data... mr-es335 Sentinel Music Studios
Solution ioa747 Posted September 9, 2024 Solution Posted September 9, 2024 (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 September 9, 2024 by ioa747 correction mr-es335 1 I know that I know nothing
mr-es335 Posted September 9, 2024 Author Posted September 9, 2024 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. mr-es335 Sentinel Music Studios
mr-es335 Posted February 13 Author Posted February 13 ioa747, How can @SW_HIDE be added to the above? ShellExecuteWait('REG', 'EXPORT "HKEY_LOCAL_MACHINE\SOFTWARE\FabFilter" "' & $_sSrcPath & '" /Y') Thanks! mr-es335 Sentinel Music Studios
ioa747 Posted February 13 Posted February 13 ; ShellExecuteWait ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] ) ShellExecuteWait('REG', 'EXPORT "HKEY_LOCAL_MACHINE\SOFTWARE\FabFilter" "' & $_sSrcPath & '" /Y', "", "", @SW_HIDE) I know that I know nothing
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