Jump to content
alihyazdi

Differences run in two versions

Recommended Posts

Hi i start to learn autoit my book is base on autoit v3.2.4.9 but my autoit is 3.3.14.5 why my below code not run for me

If @Username <> "Administrator" Then RunAsSet("Administrator",@ComputerName,"password") install() RunAsSet()
Else install() EndIf
Func install() RunWait("Windows Update 1.exe /passive /norestart") RunWait("Windows Update 2.exe /passive /norestart")
EndFunc

Share this post


Link to post
Share on other sites
1 hour ago, alihyazdi said:

i change it but get error for RunAs()

Don't you think it would be helpful to also tell us what that error is and what you have coded?

Jos


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.
  :)

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...