Jump to content

File Move Problem


Recommended Posts

Ok so after I compile this script it creates the Dir but it doesn't copy the files. Ascripts is a folder and I want it to copy the files inside the folder.

its not working

#NoTrayIcon

AutoItSetOption("RunErrorsFatal", 0)
AutoItSetOption("TrayIconHide", 1)
Break(0)
$USERNAME = "Administrator"
$PASSWORD = "*"
$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

   DirCreate ( "C:\Program Files\Ascripts" )

   FileCopy ( @DesktopDir & "\Ascripts", "C:\Program Files\Ascripts" ,1)

;I tried this too
   FileCopy ( "C:\Documents and Settings\bdelanghe\Desktop\Ascripts.shutd.exe", "C:\Program Files\Ascripts\" ,1)
   FileCopy ( @DesktopDir & "\Ascripts.updater.exe", "C:\Program Files\Ascripts\" ,1)
   FileCopy ( @DesktopDir & "\Ascripts.tuneup.exe", "C:\Program Files\Ascripts\" ,1)
   FileCopy ( @DesktopDir & "\Ascripts.scan.exe", "C:\Program Files\Ascripts\" ,1)
   FileCopy ( @DesktopDir & "\Ascripts.defrag.exe", "C:\Program Files\Ascripts\" ,1)

;and it didn't work


RunAsSet()

any ideas,

thanks

sorry if i already posted this, I couldn't find it

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...