greetings all...

i need a .bat file, taking a number of .sqc files in a specified folder and converting them all to .c files at once...

ive already have this one:

PROC80.EXE iname =%1.SQC SQLCHECK=SYNTAX MODE=ANSI oname =%1.C ORECLEN=999 IRECLEN=999 LTYPE=NONE (lets say it sqc2c)

the bad thing is i have to use it for every single .sqc separately, giving as input the ''sqc name'' without the extension...

i guess that a command like for %f in (*.sqc) do sqc2c %f might be close to the answer but the result is files with double extension .sqc.C...

do u have any idea ? may be a way to substring the ''file.sqc'', take away the extension and then run ''sqc2c'' ?

im apologising in advance if im not describing the situation well enough... please note that its the first time im experimenting in something like this...

regards...