Guest bugs_buny Posted February 23, 2005 Posted February 23, 2005 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
Andre Posted February 23, 2005 Posted February 23, 2005 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!
SlimShady Posted February 23, 2005 Posted February 23, 2005 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')
Andre Posted February 23, 2005 Posted February 23, 2005 @SlimShady, Your're to kind for the beginners What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
SlimShady Posted February 23, 2005 Posted February 23, 2005 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.
Andre Posted February 23, 2005 Posted February 23, 2005 Ok, U made an clear point 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!
trids Posted February 23, 2005 Posted February 23, 2005 [..]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
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