1.

Solve : Crc32 by DOS command?

Answer»

please, HELP me
I want to generate crc32 of myfile in dos mode...
how that code? (maybe in *.VBS)
google crc32.exe, there are plenty of free programs to do it
GrahamThanks gpl, but
any idea?...maybe like (*.vbs), so if I generate it use [wscript "crc32.vbs"] it will DISPLAY crc32 of myfile in command prompt and set it as variable...
In a command prompt (or in a BATCH file), imagine your program is called crc32.exe
and it is called like this
crc32.exe filename.ext
and it displays
filename.ext : 1293640
(or whatever the crc is suppoesed to look like)
you would redirect the output to a file, eg
>$TempCRC$ crc32.exe filename.ext
then read the file into a variable
Set /P MyCRC=<$TempCRC$
now %MyCRC% contains
filename.ext : 1293640
You can use string operations to REMOVE the unwanted bits and have just the crc value

easy really -- but the example I gave was for a mythical crc generating program, you will have to experiment with a real one (or several) until you get the results you need

Grahama random search here



Discussion

No Comment Found