unclefishy Posted June 6, 2006 Share 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted June 6, 2006 Developers Share Posted June 6, 2006 try: RunWait(@Comspec & " /c path\sus.reg","",@sw_hide) Or just use RegWrite() to set the correct SUS sesttings ..... 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. Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 6, 2006 Share Posted June 6, 2006 Hi, have you tried #include <Process.au3> $rc = _RunDos("start Http://www.autoitscript.com") So long, Mega 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 Link to comment Share on other sites More sharing options...
CyberSlug Posted June 6, 2006 Share Posted June 6, 2006 ;The /s silent switch supresses the confirmation dialog Run('regedit /s "path\sus.reg"') Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
unclefishy Posted June 6, 2006 Author Share 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" Link to comment Share on other sites More sharing options...
CyberSlug Posted June 6, 2006 Share 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 Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! 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