I need a specific copy operation

mrzero

New Member
Hello I’m searching for a specific copy operation, I need to copy all the folders however all the files that are to be copied are to not have data in them. For instance if I copy /movies/ and in it I have a 1GB file titled mountains.avi I want the file to be copied however the copy is to be striped of the original data and have the film data replaced with a text file string that I will specify.

It can be really everything from scripts to command line commands to programs.

Thanks for all future responces.
 
If I understand what you are saying, you don't really want to copy the file but instead want to create a text file with the same name containing some text. In your example of mountains.avi, you would want a text file created named mountains.avi containing your specified text.

First off, I would recommend that the name be changed from mountains.avi to mountains.txt since if you were to attempt to open a text file named mountains.avi by double-clicking on it, the OS would attempt to open it as an AVI file so it's best to name it mountains.txt if it is actually a text file.

Would each text file contain the same text string or would each contain a different text string? If different strings, how would you specify the text?
 
Thank you for your response yes you understand me correctly I want to create a text file with a name that is the same like the file in a targeted folder hierarchy, however I want also to copy the entire folder hierarchy the file is in. However this is not limited to .avi files I want every file to have its name only copied and the text file with its name must be in the same place in the copied hierarchy the real file is.

Additionally I’m aware of the fact that the OS will treat the file like a .avi and its intentional and naming it .txt would be a big mistake for my purpose. For every operation the text will be the same so technically every file will have the same text.
 
Last edited:
So you want to copy the files on some other location and make those copied files to look the same like the original files,but those copied files will not contain the same data as the original files except the names such as:

ORIGINAL FILE ---> Some file.avi (For example 30 MB)

COPIED FILE ---> Some file.avi (For example 1 KB)


If that's the case,the best way would be to make your own program in VB,C#,C++ or any other language that will do exactly what you want.

Let me guess...you want to do this because you want to fool someone :D:D:D?

LoL :D




Cheers!:D
 
Back
Top