Sign in to follow this  
Followers 0
unclefishy

executing a sus file?

6 posts in this topic

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



try: RunWait(@Comspec & " /c path\sus.reg","",@sw_hide)

Or just use RegWrite() to set the correct SUS sesttings .....

:D


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

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 :D

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!

Share this post


Link to post
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
Sign in to follow this  
Followers 0