Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Crc32 by DOS command  (Read 6396 times)

0 Members and 1 Guest are viewing this topic.

Fen_Li

    Topic Starter


    Beginner

  • G-Smart thing Smart
  • Thanked: 2
    Crc32 by DOS command
    « on: June 11, 2007, 04:12:53 PM »
    please, help me
    I want to generate crc32 of myfile in dos mode...
    how that code? ??? (maybe in *.vbs)
     :) ;) :D ;D
    ..Still Newbie KID..

    gpl



      Apprentice
    • Thanked: 27
      Re: Crc32 by DOS command
      « Reply #1 on: June 12, 2007, 02:52:59 AM »
      google crc32.exe, there are plenty of free programs to do it
      Graham

      Fen_Li

        Topic Starter


        Beginner

      • G-Smart thing Smart
      • Thanked: 2
        Re: Crc32 by DOS command
        « Reply #2 on: June 13, 2007, 12:02:14 PM »
        Thanks 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...
         :(
        ..Still Newbie KID..

        gpl



          Apprentice
        • Thanked: 27
          Re: Crc32 by DOS command
          « Reply #3 on: June 13, 2007, 12:17:32 PM »
          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

          Graham

          ghostdog74



            Specialist

            Thanked: 27
            Re: Crc32 by DOS command
            « Reply #4 on: June 13, 2007, 06:11:52 PM »
            a random search here