Sign in to follow this  
Followers 0
skafreak_510

File Move Problem

3 posts in this topic

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

Share this post


Link to post
Share on other sites



if the files are in a folder on the desktop

then

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

all files in the folder

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

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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

Here

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

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