April 26, 2024, 08:16:22 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Not able to recomple - program already running

Started by billhsln, January 11, 2021, 07:58:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

billhsln

I know many of you have had a program you are working on and testing.  How many times have you compiled the program and run it only to see nothing.  Then you make some changes and try to recompile and it won't let you save the program.  Usually what happened is the program is still running just not where it shows up any where.  You can go to task manager and find it and then close it, which is ok, but some times you might have to do that more than once.  Another way is to create a quick batch file with the name of the program and then run it to close the program.  Or create a generic batch where you pass the name of the program to it.

Generic:

Taskkill /T /F/ /IM %1
store this batch file under c:\users\your id  So, when you go to CMD to execute it will start in that directory.   To make it easy to remember call it TK.BAT.  Now if your program is 'my_program.exe'  you would do:  TK my_program.exe  or if you have spaces in the program name then TK "my program.exe".  This will then allow you to compile again.

Bill


When all else fails, get a bigger hammer.

Brian