Creating an archive batch with embed code

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
hacxx
Posts: 28
Joined: 09 Apr 2015 13:18

Creating an archive batch with embed code

#1 Post by hacxx » 25 Mar 2016 14:12

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

foxidrive
Expert
Posts: 6033
Joined: 10 Feb 2012 02:20

Re: Creating an archive batch with embed code

#2 Post by foxidrive » 25 Mar 2016 16:53

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.

hacxx
Posts: 28
Joined: 09 Apr 2015 13:18

Re: Creating an archive batch with embed code

#3 Post by hacxx » 26 Mar 2016 13:25

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

mirrormirror
Posts: 127
Joined: 08 Feb 2016 20:25

Re: Creating an archive batch with embed code

#4 Post by mirrormirror » 26 Mar 2016 15:05

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

Post Reply