coucou 0 Posted May 25, 2011 Hi, I'm looking for how to run the following command with the macro @WindowsDir RunWait('RegEdit /S "C:\Windows\Setup\Scripts\MyProg.reg"') I tested the 2 following without success RunWait('RegEdit /S @WindowsDir & "\Setup\Scripts\MyProg.reg"') $RegDir = "\Setup\Scripts\MyProg.reg" RunWait('RegEdit /S "@WindowsDir & $RegDir"') Regards Share this post Link to post Share on other sites
Jos 2,208 Posted May 25, 2011 RunWait('RegEdit /S "' & @WindowsDir & '\Setup\Scripts\MyProg.reg"') SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites