Morel Posted March 27, 2007 Share Posted March 27, 2007 Hello There Is Any Way To Create a Function That Pause The Script Until The FileCopy Function Will Ended Just Like RunWait Function That Pause The Script Until The Command is Finished ? Thanks Morel Link to comment Share on other sites More sharing options...
xcal Posted March 27, 2007 Share Posted March 27, 2007 (edited) Before you start the copy, stick the file's size in a $var. Hang your script with a loop, checking the copied file's size inside the loop, until it is equal to the $var. edit - (solution 2 removed - didn't quite work) Edited March 27, 2007 by xcal How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Morel Posted March 27, 2007 Author Share Posted March 27, 2007 Thaks But u Have Try This Oprtion And The Size on a CD is not Equal to the Size on a Netwrok Drive i need another Solotion Morel Link to comment Share on other sites More sharing options...
xcal Posted March 27, 2007 Share Posted March 27, 2007 It changes size after being copied? How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Morel Posted March 27, 2007 Author Share Posted March 27, 2007 It changes size after being copied?i know that but its stil not equal size of the files cuz the the FAT on the Media and The NTFS on Network Morel Link to comment Share on other sites More sharing options...
saldous Posted March 27, 2007 Share Posted March 27, 2007 How about: runwait("msiexec /qn /i C:\copy fileabc.exe h:\network share") Link to comment Share on other sites More sharing options...
Danny35d Posted March 27, 2007 Share Posted March 27, 2007 Hello There Is Any Way To Create a Function That Pause The Script Until The FileCopy Function Will EndedJust Like RunWait Function That Pause The Script Until The Command is Finished ?ThanksMorelAs far I know when you use FileCopy() function the script will pause until the function end. AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
Morel Posted March 27, 2007 Author Share Posted March 27, 2007 How Can i Debug It and Know That The Script is Realy Paused Morel Link to comment Share on other sites More sharing options...
xcal Posted March 27, 2007 Share Posted March 27, 2007 (edited) i know that but its stil not equal size of the files cuz the the FAT on the Media and The NTFS on Network MorelUmm...the amount of space it takes on the disk may change, but the file size won't. (If Danny is right, though, it really doesn't matter. Haven't tried it, myself.) Edited March 27, 2007 by xcal How To Ask Questions The Smart Way 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