Sign in to follow this  
Followers 0
DSIS

Computer Management Export List Automation

5 posts in this topic

I am trying to create a method of using AutoIT to Export the list of open shared files in Computer Management. I can open the Computer mangement program and get to the list of open shared files(script attached). However I have not been able to find a way to export this to a delimited text file. Is there a way to move to the Action item "Export List" or is there a name for the Export List program that can be executed with the RUN command? Any ideas how to accomplish this? Thanks.

CompMgt.au3

Share this post


Link to post
Share on other sites



Add these two lines to your script:

ControlClick("Computer Management", "", "[CLASS:ToolbarWindow32; INSTANCE:2]", "left", 1, 69, 10)
send("{DOWN}{DOWN}{ENTER}")

#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

Also, the line in your script:

RUN(@SystemDir & '\mmc.exe ' & @SystemDir & '\compmgmt.msc ')

Can be simplified to:

ShellExecute("compmgmt.msc")

#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

Thanks for the tips. I will try them.

Share this post


Link to post
Share on other sites

I am trying to create a method of using AutoIT to Export the list of open shared files in Computer Management. I can open the Computer mangement program and get to the list of open shared files(script attached). However I have not been able to find a way to export this to a delimited text file. Is there a way to move to the Action item "Export List" or is there a name for the Export List program that can be executed with the RUN command? Any ideas how to accomplish this? Thanks.

You can do this with the MMC 2.0 Automation Object Model.

Either read from the listview into a delimited string or array or call the ExportList () method and save the open files list to a file

http://msdn.microsoft.com/en-us/library/aa815049%28v=VS.85%29.aspx


I see fascists...

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