I wrote the following:
Code:
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[])
{
char child1[] = "normfet.exe";
char child2[BUFSIZ];
char child3[BUFSIZ];
// nome saida
strcpy (child3, argv[1]);
strcat (child3, "nm");
strcpy (child2, child1);
strcat (child2, " ");
strcat (child2, argv[1]);
strcat (child2, " ");
strcat (child2, child3);
strcat (child2, " -nml -ftr");
printf ("Executing %s\n", child2);
system (child2);
return 0;
}
and then used the batch script with
Code:
FOR %%c in (C:\3d\*.xyz) DO tnormefet.exe %%c
but it errors out just before finishing. I guess there is nothing else to do, normfet.exe killed my plans.