skafreak_510 Posted October 26, 2005 Share Posted October 26, 2005 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 More sharing options...
Valuater Posted October 26, 2005 Share Posted October 26, 2005 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) Link to comment Share on other sites More sharing options...
Skruge Posted October 26, 2005 Share Posted October 26, 2005 sorry if i already posted this, I couldn't find it Here [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] 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