Jump to content
Sign in to follow this  

filecopy wont copy

Recommended Posts


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.

Local $export_folder_name = "11-27-12 OPEN EXPORTS\"
Local $DAW3 = "C:\Documents and Settings\sebrad\Desktop\Open PM3\11-27-12"
Local $DAW1 = "\\\Incoming Projects DAW1\Promos\Open PM\"

Local $FileList = _FileListToArray("\\\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 )

If StringInStr($FileList[$i], "wav") Then
MsgBox(8192,"FILE222",$DAW1 & $export_folder_name & $FileList[$i])
FileCopy($DAW1 & $export_folder_name & $FileList[$i],$DAW3,1 )


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.