mIRC Homepage
Hi all

this is a stupid question, but is there a possibly for the script to detect a bat file running in the background and not /run it when its triggered again?

so far i believe the process works with .exe files thats in task manager, i ran a bat file as a test, paused it and task manager only detects it as a .cmd file

this is the script i got, but im sure its wrong... any ideas/suggestions would be appreciated

i grabbed the isrun alias from another thread,although - it works only with .exe and not with the bat file, which runs first, then the bat file opens the .exe inside the bat file afterward

thank you.

===

alias -l baterror { msg # Batch file and winamp is already running | halt }

alias winamptest {
if ($com(wscript)) || ($com(wscript.exec)) || ($com(wscript.exec.stdout)) {
baterror
if ($isrun(winamp.exe) == $true) {
baterror
}
else {
run test.bat
}
}
}
© mIRC Discussion Forums