Page 1 of 1

Creating an archive batch with embed code

Posted: 25 Mar 2016 14:12
by hacxx
Hi,

Is it possible to embed a file in a batch without losing there properties? And be able to extract to a file.

Example:

Code: Select all

@echo off
echo This_is_the_example_code_of_an_image > c:\image.jpg


I tried ascii and plain text but it didn't work out.

Thanks for all the help

Re: Creating an archive batch with embed code

Posted: 25 Mar 2016 16:53
by foxidrive
Which properties do you need to keep?

You can embed a file easily using many styles of encoding, but they are essentially designed to maintain the integrity of the file itself.

Re: Creating an archive batch with embed code

Posted: 26 Mar 2016 13:25
by hacxx
foxidrive wrote:Which properties do you need to keep?

You can embed a file easily using many styles of encoding, but they are essentially designed to maintain the integrity of the file itself.


Yes, im looking for some type of encoding that preserves the file and extracts it when requested. I also tried hex encoding but it didn't work out. The jpg i mention is just an example, i want to use other file formats aswell.

Thanks

Re: Creating an archive batch with embed code

Posted: 26 Mar 2016 15:05
by mirrormirror
If I understand what you are looking for, users here have already developed several methods for doing this. If you read through this thread you'll see some of them: viewtopic.php?f=3&t=6983