Jump to content

DiskManagement Automation


Recommended Posts

Trying to get the Action menu open in DiskMgmt.MSC on windows. Here is the code:

#include <GuiToolbar.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
ShellExecute("mmc.exe", "diskmgmt.msc") ; Run Disk Management
Sleep(5000) ;wait
ControlClick("Disk Management","[CLASS:ToolbarWindow32; INSTANCE:2]", 62, 10 )

It just doesn't show any effect. Any help?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...