Sign in to follow this  
Followers 0
omardj38

Tasklist to TXT file

3 posts in this topic

Hi. I searched over the forums but i didn't find any help, so here my problem:

I want to create a script that save in a simple TXT file all results of the DOS command TASKLIST. How can i do that? I know how to run tasklist but i don't know how to save that data in a txt file.

Any suggestions?

have a nice day

Share this post


Link to post
Share on other sites



Hi. I searched over the forums but i didn't find any help, so here my problem:

I want to create a script that save in a simple TXT file all results of the DOS command TASKLIST. How can i do that? I know how to run tasklist but i don't know how to save that data in a txt file.

Any suggestions?

have a nice day

hi,

just run tasklist >c:\tasklist.txt; this creates new file tasklist.txt. if you use tasklist >>c:\tasklist.txt the output will append to existing file, otherwise it creates a new file.

;-))

Stefan

Share this post


Link to post
Share on other sites

upppss.....i found my answer in google.........i only need to do this:

$rc = _RunDOS ("TASKLIST >List.txt")

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0