Sign in to follow this  
Followers 0
somh

How to detect a primary partition?

3 posts in this topic

I think winmgmts object might be used, but don't know how.

Share this post


Link to post
Share on other sites



Oh I found it here:

http://msdn2.microsoft.com/en-us/library/aa387256.aspx

PrimaryPartition is a boolean value:

$oWMI = ObjGet("winmgmts:\\.\root\CIMV2")
$cItems = $oWMI.ExecQuery ("SELECT * FROM CIM_DiskPartition")
For $oItem in $cItems
    MsgBox(0,"",$oItem.PrimaryPartition)
Next

Share this post


Link to post
Share on other sites

You should add that to the autoit snippet database, thats useful to know.

http://quadryders.com/phpcc/index.php


While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

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