doctor2001
IS-IT--Management
Just wondering if someone can help me a little...
I am trying to make a Dos application that executes in the autoexec.bat. The program will run, and if a funtion key is pressed it will run a batch file. If it is not pressed it will self-terminate and comtinue to load Windows. I am a newbie to C programming and this is what I have so far...
# include <stdio.h>
# include <stdlib.h>
main ( )
{
system("cls"
system("run" run is the batch file
}
Could someone tell me how to use a keypress function and then I could put it into an if statement...I think.
Thanks I advance...I trying o learn on my own !!!
I am trying to make a Dos application that executes in the autoexec.bat. The program will run, and if a funtion key is pressed it will run a batch file. If it is not pressed it will self-terminate and comtinue to load Windows. I am a newbie to C programming and this is what I have so far...
# include <stdio.h>
# include <stdlib.h>
main ( )
{
system("cls"
system("run" run is the batch file
}
Could someone tell me how to use a keypress function and then I could put it into an if statement...I think.
Thanks I advance...I trying o learn on my own !!!