Hello
I want to check if a program is running.
Like this:
If notepad.exe is active, taskkill it. Else go to label con.
I know that booleans are true or false, but I don't know how to check if boolean x is valid or not.
Anyway,
Thanks for reading,
Niely
I want to check if a program is running.
Like this:
PHP Code
<?php
bool x("notepad.exe" == true); {
system("taskkill /f /im notepad.exe >nul");
} else {
goto con;
}
con:
...
If notepad.exe is active, taskkill it. Else go to label con.
I know that booleans are true or false, but I don't know how to check if boolean x is valid or not.
Anyway,
Thanks for reading,
Niely


