Jump to content

Recommended Posts

Posted

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

Posted

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>

Posted

Also, the line in your script:

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

Can be simplified to:

ShellExecute("compmgmt.msc")

#include <ByteMe.au3>

Posted

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...

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
×
×
  • Create New...