Ok, it is no problem to find out if a certain process is running by using the GUI based Windows TaskManager. But how do I find this out from command line (e.g. from a DOS batch script) ? In unix there is a "ps" command. But I found no corresponding cmdline tool for WInXP/DOS Cindy
Take a look at the tasklist command. Enter tasklist /? in a command prompt for details. .. "Cindy Parker" <cypy@live.com> wrote in message news:4c864f1e$0$6881$9b4e6d93@newsspool2.arcor-online.net... > Ok, it is no problem to find out if a certain process is running by using > the GUI based Windows TaskManager. > > But how do I find this out from command line (e.g. from a DOS batch > script) ? > > In unix there is a "ps" command. > But I found no corresponding cmdline tool for WInXP/DOS > > Cindy >
From the command-line, type the following to see if a process is in memory : tasklist /fi "IMAGENAME eq EXPLORER.EXE" ...(best to "copy & paste" the above into a Command Prompt window), then you can just replace the term : "EXPLORER.EXE" with a process-name of your choice. If you'd like an easier command to type at the prompt (God knows, I had to look-up the syntax for the above command), then you can download the [free] command-line tool : "pslist.exe" ...all you need type for this command is : pslist explorer ...to return a list of all instances of processes beginning "explorer"or even : pslist exp ...which will list all processes beginning "exp" - including explorer.exe Plus, "pslist.exe" returns errorlevels, so you can use it in batch files to make choices based on if a process is running or not! (Tasklist does not return errorlevels). Download all 12 "ps tools" by Sysinternals (Microsoft) from : http://download.sysinternals.com/Files/PsTools.zip == Cheers, Tim Meddick, Peckham, London. "Cindy Parker" <cypy@live.com> wrote in message news:4c864f1e$0$6881$9b4e6d93@newsspool2.arcor-online.net... > Ok, it is no problem to find out if a certain process is running by using > the GUI based Windows TaskManager. > > But how do I find this out from command line (e.g. from a DOS batch > script) ? > > In unix there is a "ps" command. > But I found no corresponding cmdline tool for WInXP/DOS > > Cindy >