Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
hacxx
- Posts: 57
- Joined: 09 Apr 2015 13:18
#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: 6031
- Joined: 10 Feb 2012 02:20
#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: 57
- Joined: 09 Apr 2015 13:18
#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