Hi cats,
please I have a xdcam drive unit that can have a variable number of file based on the disc inserted. So for example I can have:
C0001.MXF
C0002.MXF
C0003.MXF
...
C0100.MXF
and so on.
I would like do a batch that copy all mxf files in the current directory but:
during the copy, and for each mxf, it have to copy the file as a temporary file with extension .tmp. ONLY when the copy is finisched --> rename it as the original.
For example: during the copy of C0001.MXF it have to write (in the current directory) C0001.TMP
and only when the the copy is finisched -->rename C0001.TMP as C0001.MXF
and so on.
How can I do? thanks
+ Reply to Thread
Results 1 to 9 of 9
-
-
Do you have to use xcopy? What about copy in a for loop?
Code:for %%f in ("D:\temp\folder 1\*.MXF") do ( copy "%%f" "D:\temp\folder 2\%%~nf.TMP" ren "%%~dpnf.TMP" "%%~dpnf.MXF" )
-
Similar Threads
-
Batch MKV title to filename renaming.
By Zareaus in forum Newbie / General discussionsReplies: 7Last Post: 16th May 2018, 04:12 -
Renaming MP4 to MPEG
By Headrush in forum Video ConversionReplies: 1Last Post: 5th Feb 2016, 03:57 -
xcopy and renaming a file
By marcorocchini in forum Newbie / General discussionsReplies: 7Last Post: 2nd Oct 2014, 18:44 -
batch convert renaming
By video00 in forum Video ConversionReplies: 5Last Post: 7th May 2013, 20:41 -
Help with file renaming during conversion with avidemux
By cdig04 in forum Video ConversionReplies: 1Last Post: 3rd Jan 2013, 15:07