With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
batch name: READIT.BTM requires 4nt/tcc shell environment to run!reads binary code converts to simple textsetlocalunset /q * set open_0=%@fileopen[%1,r,b] set open_1=%@fileopen[output.txt,w,t] : do r=0 to %@filesize[%1] by 9 set w=%@filewriteb[%open_1,1,%@char[%@convert[2,10,%@fileread[%open_0,9]]]] enddo set close=%@fileclose[%open_0] %@fileclose[%open_1] endlocalquit line between do / enddo is ONE line set w=etc....superfluous data detected in your binary code removed by readit.btm
Seems to be more additional "superfluous" data than actual text ..- I would love help. it seems cool, it just is hard to grasp.simple 4nt/tcc batch file reads and writes binary to text-READIT.BTMSETLOCALUNSET /Q * SET OPEN_0=%@FILEOPEN[%1,R,B] SET OPEN_1=%@FILEOPEN[OUTPUT.TXT,W,T] :DO R=0 TO %@FILESIZE[%1] BY 1 SET JMP=%@FILESEEK[%OPEN_0,0,1] SET F=%@FILEREAD[%OPEN_0,9] SET W=%@FILEWRITEB[%OPEN_1,1,%@CHAR[%@CONVERT[2,10,%F]]]ENDDOSET CLOSE=%@FILECLOSE[%OPEN_0] %@FILECLOSE[%OPEN_1]ENDLOCALQUIT
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.