Here's the problem.
I have a batch file that moves files from one directory to another, using the "move" command.
It works ok.
But when I try to run it from a C program using the function "system("file.bat");", the move command doesn't work.
Giving the error message: "invalid command or bad filename".
The line on the batch file is simply:
move c:\enc\hist\*.lst c:\enc\
Thanks to all.