windows - TaskList command hangs up while using in batch file -


I'm trying to use a tasklist.exe utility to search an operation using a batch script. I am Remote is running on the server

I am using the following command

  tasklist / s 192.168.1.246 / u myusername / p mypassword / FI "IMAGENAME eq Oracle.EXE "& gt;   

When I try to execute the commands given above from the command prompt directly, it executes and returns the desired output

  image Name PID Session Name Session # Mem Usage ======================================= ======== == ======================= oracle.exe 4988 console 0 5121392   < P> But when the same command is  

please

Regards

Change your batch name to tasklist.bat to anothername.bat or add .exe In not line of code: tasklist.exe / s 192.168 ...

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -