Solved I broke Command Prompt. How?

Various / CUSTOM BUILT
February 14, 2016 at 05:34:22
Specs: Windows 10, Intel i7 4770k, 32GB 1600MHz RAM
I am working on a bitmap (.BMP) corruptor batch script, I think I'm close to making it work (idk, but from the looks of it I might be).

However, when I run the script and choose the two files to merge into one, Windows gives me the error message
Windows Command Processer has stopped working

Script here -> http://pastebin.com/GpnnFW69

According to the Windows event log, the exception code is 0xc0000005 (Access violation?)
Anyone got any ideas as to why this is happening, and how to prevent it?

Don't worry if plan A fails, there are 25 more letters in the alphabet ;)


See More: I broke Command Prompt. How?

Report •


#1
February 14, 2016 at 16:08:37
I know you are super experianced, so this is probably a dumb question, however do you get the same response if you are running command in elevated mode?

::mike


Report •

#2
February 14, 2016 at 19:35:33
Yes, same response when running elevated. I suspect it might be because I'm using TYPE in the loops that read the .bmp's, but doing it the normal way just stopped after the 6 first characters, while TYPE got everything. I'm not that good with handling special characters and stuff

Don't worry if plan A fails, there are 25 more letters in the alphabet ;)


Report •

#3
February 14, 2016 at 19:57:59
✔ Best Answer
I doubt you will be able to coerce batch into handling binary data satisfactorily. Even if you get past this error, and you get some kind of output, what do you intend to do with it? De-interleave into the two .BMP source files? If you can make it happen using batch alone, I will be impressed.
More standard approach would be to convert the BMPs to base-64 before interleaving them, that way you're dealing with ascii text and not binary, but then you still need a B64 engine which will probably not be batch. You might look into a VBscript solution ( http://www.computing.net/howtos/sho... ) lbut I can't vouch for anything 64-bit.

message edited by nbrane


Report •

Related Solutions

#4
February 14, 2016 at 20:06:55
I think CertUtil would be able to do base-64? I've done it way back in the past once, if I remember correctly.

Don't worry if plan A fails, there are 25 more letters in the alphabet ;)


Report •

#5
February 16, 2016 at 02:55:00
Made it work with some slight modifications and encoding the BMP's to base-64 using CertUtil

Thanks for the help :D

Don't worry if plan A fails, there are 25 more letters in the alphabet ;)


Report •

Ask Question