Sign in to follow this  
Followers 0
skafreak_510

move folder

2 posts in this topic

#1 ·  Posted (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 by skafreak_510

Share this post


Link to post
Share on other sites

#2 ·  Posted (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

Just 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 by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        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
Sign in to follow this  
Followers 0