PGP button to unmount specific disk

I'm not sure if this question belongs to Opus forum. If not, I ask apologizes, but I didn't know where to make the question:
How to create a button (or a hotkey) to unmount a given PGPdisk?

PGPDesktop already have a hotkey to unmount all mounted disks. This solution has two undesired issues:
1 - it needs to load PGPtray and PGP services
2 - it unmounts ALL open disks

But the challenger is to unmount just only one, the one I want. I searched for PGP command line options but nothing about unmount tasks.

If I click on a disk, the context menu offers the unmount option click without any service or PGPtray already loaded. But I don't know what is inside of that context menu option to allow me create a button.

Anyone knows?

Thx.

That's probably best asked in a PGP support channel, unless you get lucky and someone here happens to be familiar with this side of PGP..

If you can find out what the command is to tell PGP to unmount a disk, we can help you with how to run that command from Opus.

Thank you, Leo. Indeed, this is the best direction for my question. I'll post here if I got an answer for that.

HI,

try this one. I think you can do mount/unmount just with "PGPmnApp.exe PGP_CODE_MNTUNMNT_DISK". I will mount if not already mounted and unmount if mounted.

The first one was what I got through my corporate IT asking the PGP vendor;-)

<?xml version="1.0"?> <button backcol="none" display="icon" separate="yes" textcol="none" type="three_button"> <label>PGP</label> <icon1>C:\Program Files\PGP Corporation\PGP Desktop\PGPtray.exe,0</icon1> <button backcol="none" display="icon" textcol="none"> <label>Mount Private</label> <icon1>C:\Program Files\PGP Corporation\PGP Desktop\PGPtray.exe,0</icon1> <function type="normal"> <instruction>C:\Program Files\PGP Corporation\PGP Desktop\PGPtray.exe /m D:\Private.pgd</instruction> <instruction>Go REFRESH=all </instruction> </function> </button> <button backcol="none" display="icon" textcol="none"> <label>Dismount Private</label> <icon1>C:\Program Files\PGP Corporation\PGP Desktop\PGPtray.exe,3</icon1> <function type="normal"> <instruction>C:\Program Files\PGP Corporation\PGP Desktop\PGPmnApp.exe PGP_CODE_MNTUNMNT_DISK D:\Private.pgd</instruction> <instruction>Go REFRESH=all </instruction> </function> </button> </button>

[quote="xbprm"]try this one. I think you can do mount/unmount just with "PGPmnApp.exe PGP_CODE_MNTUNMNT_DISK". I will mount if not already mounted and unmount if mounted.
[/quote]
Wonderful, xbprm!

Your solution is the best I've heard since my question was posted! As I said before, I searched for an answer at PGP forum, but they said there, that such command doesn't exists. Look what somebody said:

"There is no pgp command to perform that action. Perhaps you can achieve this using mountvol cmd command, run mountvol /? for more information.
After you mount encypted volume, PGP should prompt for passphrase. In that case it needs to load PGPtray and PGP services always, otherwise you will see raw data."

But your button worked nicely and it was exactly what I was looking for! Excellent! :smiley: :smiley: :smiley:

For some reason, I was not notified about your answer since today. Sorry for delaying to test your solution. I only could see that, because I came here to make another question, that it was already promptly answered by Leo.

Cheers. Bravo!