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.
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;-)
[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!
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.