#include <stdio.h>
main(ac,av)
int ac; char *av[];
{
  char f1[20];
  FILE *fp,*fp1;
  int a;
  if(ac<2){ printf("\n\t checkv batfile\n"); exit(0); }
  fp=fopen(av[1],"rb");
  if(fp==0){ printf("batch_file not found!\n"); exit(0); }
l10:
  fscanf(fp,"%s",f1); if(feof(fp)!=0)exit(0);
  fp1=fopen(f1,"rb");
  fseek(fp1,0,2); fseek(fp1,ftell(fp1)-4,0);
  fread(&a,1,4,fp1);
  if(a==0xc3c9ffff)printf("%s\t\t\t%x\n",f1,a);
  goto l10;

}  
	
