Jump to content

Import Reg File Issue!


Recommended Posts

Good day,
I hope that this day finds you all well!

I am having "issues with the following...

;-----------------------------------------------
#include <AutoItConstants.au3>
#include <FileConstants.au3>
;-----------------------------------------------
Opt("MustDeclareVars", 1)
;------------------------------------------------
_RestoreData()
;------------------------------------------------
Func _RestoreData()
    ;------------------------------------------------
    ; Source data
    Local $sSrcPath = "I:\Installations\"
    Local $sSrcFolder = "Install_1a"
    Local $sSrcRegKeyData = "\Data\Reg_Keys\add_me.reg"
    ;------------------------------------------------
    ; ==>[A] This works...
    RunWait('REGEDIT /S "I:\Installations\Install_1a\Data\Reg_Keys\add_me.reg"')

    ; ==>[B] This does not work...
    RunWait('REGEDIT /S & $sSrcPath & $sSrcFolder & $sSrcRegKeyData')
    ;------------------
EndFunc   ;==>_RestoreData
;------------------------------------------------

Question: Why does [A] work, and does not?

Any assistance in this matter would be greatly appreciated!

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