mr-es335 Posted September 9 Share Posted September 9 (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 by mr-es335 Added missing data... mr-es335 Sentinel Music Studios Link to comment Share on other sites More sharing options...
Solution ioa747 Posted September 9 Solution Share Posted September 9 (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 by ioa747 correction mr-es335 1 I know that I know nothing Link to comment Share on other sites More sharing options...
mr-es335 Posted September 9 Author Share Posted September 9 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 Link to comment Share on other sites More sharing options...
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