Jump to content

executing a sus file?


Recommended Posts

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

  • Developers

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

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

:D

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

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

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