shay Posted February 8, 2009 Posted February 8, 2009 HIi try to use this command line in AutoIt as part of larger script'Actual command under DOS REG ADD HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce /v EWF /t REG_SZ /d "d:\test.exe"Autoit unable to preform this command because of the " at the endRunWait(@COMSPEC & " /c REG ADD HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce /v EWF /t REG_SZ /d "d:\test.exe")how can i execute this command under Autoit? "If the facts don't fit the theory, change the facts." Albert Einstein
BigDod Posted February 8, 2009 Posted February 8, 2009 Have you looked at RegWrite in the help file. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
sandin Posted February 8, 2009 Posted February 8, 2009 you CAN add quotes to the string: MsgBox(0, "", "This is somme ""quoted text""") but it's much easier to use RegWrite() and write your reg. data directly into registry Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll
shay Posted February 8, 2009 Author Posted February 8, 2009 thanks! i use REGWRITE and looks like it do the job.! RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce", "ewf", "REG_SZ", "d:\test.exe") "If the facts don't fit the theory, change the facts." Albert Einstein
Varian Posted February 8, 2009 Posted February 8, 2009 RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce", "EWF", "REG_SZ", '"d:\test.exe"')
Eric88 Posted July 13, 2009 Posted July 13, 2009 RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce", "EWF", "REG_SZ", '"d:\test.exe"') May i know how to insert registry string if we are "Restricted user" i get error" Error Creating Value", Error writng to the registry. Help
herewasplato Posted July 13, 2009 Posted July 13, 2009 Do a forum search on +regwrite +runas [size="1"][font="Arial"].[u].[/u][/font][/size]
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