skafreak_510 Posted October 25, 2005 Share Posted October 25, 2005 (edited) How do I move a folder as if I had rights to write in dir that I do not. I thought of using Runsetas() but it doesn't seem to work thanks Edited October 25, 2005 by skafreak_510 Link to comment Share on other sites More sharing options...
Developers Jos Posted October 25, 2005 Developers Share Posted October 25, 2005 (edited) How do I move a folder as if I had rights to write in dir that I do not.I thought of using Runsetas() but it doesn't seem to workthanksJust restart your script after RunAsSet() .. (must be Compiled to work properly) AutoItSetOption("RunErrorsFatal", 0) AutoItSetOption("TrayIconHide", 1) Break(0) $USERNAME = "Administrator" $PASSWORD = "Secret" $RUN = 0 ; run indicator ; retrieve the cycle from commandline If $CMDLINE[0] = 1 Then $RUN = $CMDLINE[1] If $RUN = 0 Then RunAsSet($USERNAME, @ComputerName, $PASSWORD) Run('"' & @ScriptFullPath & '" " 1"') If @error Then MsgBox(4096+32,"Error", "Error starting under admin mode") Exit EndIf FileMove(.....) Edited October 25, 2005 by JdeB 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 More sharing options...
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