Jump to content
Sign in to follow this  
Guest bugs_buny

Regsrv32

Recommended Posts

Guest bugs_buny

In an installation i have to copy an toto.ocx file, after the file copy i have to start a dos command:

regsrv32 toto.ocx /s

How to start this command in a au3 file

Thanks

Alex

Share this post


Link to post
Share on other sites

Did u ever read the help file ?

Runs an external program.

Run ( "filename" [, "workingdir" [, flag]] )

Parameters

filename The name of the executable (EXE, BAT, COM, or PIF) to run.

workingdir [optional] The working directory.

flag [optional] The "show" flag of the executed program:

@SW_HIDE = Hidden window

@SW_MINIMIZE = Minimized window

@SW_MAXIMIZE = Maximized window

Andre


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites

There are different ways.

I'll post some.

1.

Run('regsrv32 toto.ocx /s', @SystemDir)

2.

RunWait('regsrv32 toto.ocx /s', @SystemDir)

3.

Run(@SystemDir & '\regsrv32.exe toto.ocx /s')

4.

RunWait(@SystemDir & '\regsrv32.exe toto.ocx /s')

Share this post


Link to post
Share on other sites

@SlimShady,

Your're to kind for the beginners :lmao:


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites

You know why?

I realised that some members here use AutoIt3 for business purposes.

They need an AutoIt3 script working asap and have no time to learn the language.

If someone is talking about a bots or games, I slow down and tell them to read the help file first.

Kids have inifinite time, employees not.

Share this post


Link to post
Share on other sites

Ok,

U made an clear point :lmao:

I like that.

I'll try to do the same.

Pehaps start an poll to see who is using AutoIt3 for what purpose ?

Andre


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites

[..]

regsrv32 toto.ocx /s

[..]

<{POST_SNAPBACK}>

Also .. you might have more luck running regsvr32 .

Tip = get your commandline running in DOS, then copy and paste into AU3

:lmao:

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...