DSIS Posted May 31, 2011 Share Posted May 31, 2011 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 Link to comment Share on other sites More sharing options...
sleepydvdr Posted May 31, 2011 Share Posted May 31, 2011 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> Link to comment Share on other sites More sharing options...
sleepydvdr Posted May 31, 2011 Share Posted May 31, 2011 Also, the line in your script: RUN(@SystemDir & '\mmc.exe ' & @SystemDir & '\compmgmt.msc ') Can be simplified to: ShellExecute("compmgmt.msc") #include <ByteMe.au3> Link to comment Share on other sites More sharing options...
DSIS Posted June 1, 2011 Author Share Posted June 1, 2011 Thanks for the tips. I will try them. Link to comment Share on other sites More sharing options...
rover Posted June 1, 2011 Share Posted June 1, 2011 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 filehttp://msdn.microsoft.com/en-us/library/aa815049%28v=VS.85%29.aspx I see fascists... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now