| 1. |
Solve : Print running processe to txt file? |
|
Answer» Hi all Have you verified that rclient is executing successfully? Yes rclient is executing correctly.Try REMOVING the quotes surrounding the tasklist command. i.e. change start rclient %%a /R "c:\temp\tasklist /v /fi "IMAGENAME EQ IEXPLORE.exe" > c:\temp\process.txt" to start rclient %%a /R c:\temp\tasklist /v /fi "IMAGENAME EQ IEXPLORE.exe" > c:\temp\process.txt One other thing I noticed, in your batch file you are calling tasklist from c:\temp\ and when running from the command prompt you are calling tasklist from C:\Scripts\! Quote from: oldun on August 10, 2009, 01:21:14 AM Try removing the quotes surrounding the tasklist command. i.e. change Tried that one and I get the following message after removing the quotes "The system cannot find the path specified." Quote from: oldun on August 10, 2009, 01:21:14 AM One other thing I noticed, in your batch file you are calling tasklist from c:\temp\ and when running from the command prompt you are calling tasklist from C:\Scripts\! The script is being from a local MACHINE to retrieve the required info from about twenty machines in the domain group. The myList.txt contains machine list. Thanks for the asisstance CH contributors on this one. Even though it wasnt a few lines I wrote a SQL script to do what I needed. Solved. |
|