Hello,
I am having a peculiar and specific problem. When I use a batch file to test if, say, "notepad" is working, I use the simple program here:
////////
SETLOCAL EnableExtensions
set EXE=notepad.exe
FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% goto FOUND
echo Not running
pause
goto FIN
:FOUND
echo Running
pause
:FIN
////////
And it works, of course. But not if I change the second line to:
set EXE=dbase.exe
This batch file doesn't see that ol' dBase IV is running when it is running. (I still have the program execute notepad because I don't want the trouble of two versions of dBase fighting over files.) Is there something else I should know about this or is there an alternate test out there? Does this have something to do with running a legacy program like Ashton-Tate's dBase IV? (The program works well except when someone tries to run two versions of it at the same time.)
I thank anyone for their time.