Author |
Message |
cvele
Joined: 05 Oct 2009 Posts: 7 Country: Serbia |
|
Filecopy param help |
|
FileCopy command line utility or me somethings wrong.
I try simple copy file 01.wmv (50Mb), a part of it like this:
filecopy 01.wmv 01part.wmv /s /l 100000 - list usage
filecopy 01.wmv 01part.wmv /S /L 100000 - list usage
filecopy 01.wmv 01part.wmv /S 0 /L 100000 - Start position: 0, file size: -1 ; Start position beyond file end!
filecopy 01.wmv 01part.wmv /M 1 /S 0 /L 100000 - Start position: 0, file size: -1 ; Start position beyond file end!
filecopy 01.wmv 01part.wmv - it is copyed
help, how to ...?
|
|
Mon Oct 05, 2009 3:45 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
Please describe the objective of what you are trying to do. I can then suggest the required parameters.
|
|
Mon Oct 05, 2009 5:37 pm |
|
 |
cvele
Joined: 05 Oct 2009 Posts: 7 Country: Serbia |
|
|
|
I have 01.wmv file with errors at the end of a clip. So movie goes, goes ... and at 20 min it freezes. I would like to save a part of a clip witch is on dvd-rw, because I cant copied at hdd because of this error. Path of a damaged file is ok and in example I omitted , wanted to try first with some other file first.
now help?
|
|
Tue Oct 06, 2009 7:43 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
You cannot simply cut a part of a binary file like WMF, you are still going to have a damaged file. This can only be done for text files.
You should find a utility for fixing corrupted WMF files and use it to fix your file.
|
|
Tue Oct 06, 2009 9:23 am |
|
 |
cvele
Joined: 05 Oct 2009 Posts: 7 Country: Serbia |
|
|
|
Dam!
I don't want to fix WMF file, just take the good part.
DOS copy command have attribute /b for binary why FileCopy doesn't?
On http://www.softtree.com/24x7/archive/44.shtml there is no word that command applies to text files. So if command itself doesn't know its a binary file (have no switch) why not working?
What if a file is a 100 Mb picture (tga, jpeg...) also damaged in copy process from hdd to dvd. Could I save a part of it if bottom of a picture have black line, or some kind of error?
So filecopy 01.xxx 01part.xxx /S 0 /L 10000000 command looks logical for copy any kind of a file from start to last 10Mb of that file.
|
|
Tue Oct 06, 2009 2:47 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
You didn't get my point. The point is that you can NOT just cut an arbitrary part of a binary file and assume you got a good part. Binary files may not be just split in a middle. This would break the internal file structure and cause file corruption.
The bottom line, this will not cure your problem, it will just make the file playback hang sooner rather then later. You should drop the idea of splitting WMF file by copying part of the file. You need a utility to fix the internal file structure, or to intelligently recover whatever is possible to recover from an already corrupted file.
|
|
Tue Oct 06, 2009 3:44 pm |
|
 |
cvele
Joined: 05 Oct 2009 Posts: 7 Country: Serbia |
|
|
|
Yes I did get your point but you didn't answer to my question!?
>>you can NOT just cut an arbitrary part of a binary file and assume you got a good part<<Let>>This can only be done for text files<<
FileCopy doesn't support binary?
>>Binary files may not be just split in a middle. This would break the internal file structure and cause file corruption. <<
I agree, but not fully. If you copy from beginning, like I would like to, and stop at middle you get new fully playable clip. But if you copy from middle to end you will get unusable clip cause you broke file info important for clip located at the beginning of clip. Look here: http://alter.org.ua/en/soft/win/bb_recover/ This mf***** working. And I founded after get frustrated with FileCopy. Looks almost like FileCopy.
Have you try for yourself to copy-test something and see that FileCopy dumps error because cant deal with binary file?
Just want to copy a part of it, why FileCopy care is it gonna be a good part:)
|
|
Wed Oct 07, 2009 1:53 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
Yes, FileCopy does support binary files, in fact it makes no distinction between binary and text files. And it does work for binary files when using correct command line parameters.
filecopy 01.wmv 01part.wmv /L 10000
filecopy 01.wmv 02part.wmv /S 10001
|
|
Wed Oct 07, 2009 6:07 pm |
|
 |
cvele
Joined: 05 Oct 2009 Posts: 7 Country: Serbia |
|
|
|
Sorry to disappoint you, but not working for me!
filecopy 01.wmv 02part.wmv /S 10001 - works ok and copy from 10001 till end
but
filecopy 01.wmv 01part.wmv /L 10000 - should copy from beginning till 10000 but display error; (filecopy and wmv file in same dir)
Start position: 0, file size: -1
Start position beyond file end!
any comment?
|
|
Fri Oct 09, 2009 7:28 am |
|
 |
cvele
Joined: 05 Oct 2009 Posts: 7 Country: Serbia |
|
|
|
No comment!?
I suppose this end our discussion.
I ask other users to help me with last post.
Does it works command:
filecopy 01.wmv 01part.wmv /L 10000
at their comp, because it doesn't at mine (it should copy some file from start to 10000 bytes)?
|
|
Tue Oct 13, 2009 10:03 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
Does the following work for you?
filecopy 01.wmv 01part.wmv /S 1 /L 10000
|
|
Tue Oct 13, 2009 10:35 am |
|
 |
cvele
Joined: 05 Oct 2009 Posts: 7 Country: Serbia |
|
|
|
Same error.
Start position: 1, file size: -1
Start position beyond file end!
This work:
filecopy 01.wmv 01part.wmv /S 1
and this
filecopy 01.wmv 01part.wmv /S /L - copy whole file
but this
filecopy 01.wmv 01part.wmv /L 10000 - no way
|
|
Wed Oct 14, 2009 7:01 am |
|
 |
|