unclefishy 0 Posted June 6, 2006 Hi all, I know there is a simple work around for this... and I couldn't find it in the serch... so as part of our "base build" on our systems, I am trying to execute a sus.reg file, but autoit only seems to work with .exe's I am using the fileinstall()... but it chokes when I get to run("path\sus.reg") should I just use something like click "windows button +r" send("path\sus.reg") winwaitactive("sus window", "&ok") send("{ENTER}") cause I can just double click the file and it will execute? and by typing it into the run box it also works... just wondering what you thought is the "best" way thanks Share this post Link to post Share on other sites
Jos 1,844 Posted June 6, 2006 try: RunWait(@Comspec & " /c path\sus.reg","",@sw_hide) Or just use RegWrite() to set the correct SUS sesttings ..... Hide Jos's signature Hide all signatures 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
Xenobiologist 44 Posted June 6, 2006 Hi, have you tried #include <Process.au3> $rc = _RunDos("start Http://www.autoitscript.com") So long, Mega Hide Xenobiologist's signature Hide all signatures Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Share this post Link to post Share on other sites
CyberSlug 6 Posted June 6, 2006 ;The /s silent switch supresses the confirmation dialog Run('regedit /s "path\sus.reg"') Hide CyberSlug's signature Hide all signatures Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Share this post Link to post Share on other sites
unclefishy 0 Posted June 6, 2006 nice... what kind of limits are there for the /s switch... is it only for confirmation boxes... ones that just give you just then one clickable option "OK" Share this post Link to post Share on other sites
CyberSlug 6 Posted June 6, 2006 nice... what kind of limits are there for the /s switch...is it only for confirmation boxes... ones that just give you just then one clickable option "OK"Try it without the switch See also http://www.ss64.com/nt/regedit.html Hide CyberSlug's signature Hide all signatures Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Share this post Link to post Share on other sites