Jump to content
Sign in to follow this  
CharlieNoyes

DiskManagement Automation

Recommended Posts

CharlieNoyes

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?

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  

×