HchangePassword problem

Startbeitrag von Frans am 19.11.2017 21:43

Hello to you all,

I have multiple files that are used and I want to password protect them.
There are two possibilities:
a) The file is already password protected
b) It is not passwordprotected

I don't know which customers files are already protected. So I thought:
HChangePassword(MyFile,"Mypassword") // changing it to the same password in case of b)

a) this code works fine
b) the HPass and HChangePassword gives a result: true. But it is not password protected afterwards???

In case off b) : When I leave the HPass away then it encrypts but I need it when it is encrypted.
It seams that HChangePassword does not work when I use a HPass before it when the file is not password protected.
Any ideas on how to solve this?


Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.