sbrady Posted November 27, 2012 Share Posted November 27, 2012 this code WILL copy an HD video file from the source to the destination. It WILL NOT copy audio files which are much smaller. do I need to tell the script to wait until the 1st copy (the HD video) is done before any subsequent copies start. #include #include Local $export_folder_name = "11-27-12 OPEN EXPORTS\" Local $DAW3 = "C:\Documents and Settings\sebrad\Desktop\Open PM3\11-27-12" Local $DAW1 = "\\10.10.10.10\Incoming Projects DAW1\Promos\Open PM\" Local $FileList = _FileListToArray("\\10.10.10.10\Incoming Projects DAW1\Promos\Open PM\" & $export_folder_name) ;_ArrayDisplay($FileList, "$FileList") For $i = 1 To $FileList[0] ;the [0] element holds the count If StringInStr($FileList[$i], "mxf") Then MsgBox(8192,"FILE111",$DAW1 & $export_folder_name & $FileList[$i]) ;FileCopy($DAW1 & $export_folder_name & $FileList[$i],$DAW3,1 ) EndIf If StringInStr($FileList[$i], "wav") Then MsgBox(8192,"FILE222",$DAW1 & $export_folder_name & $FileList[$i]) FileCopy($DAW1 & $export_folder_name & $FileList[$i],$DAW3,1 ) EndIf Next MsgBox(8192,"FILE222","DONE") Link to comment Share on other sites More sharing options...
JohnOne Posted November 27, 2012 Share Posted November 27, 2012 Trailing backslash in destination. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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