encryptedNextcloudPortableC.../App/encryption/start-hidden.bat

6 lines
377 B
Batchfile
Raw Normal View History

2018-08-26 20:52:47 +00:00
@echo off
:: Get the password
powershell -Command $pword = read-host "Enter password" -AsSecureString ; $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword) ; [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR) > .tmp.txt & set /p passwd=<.tmp.txt & del .tmp.txt
2017-06-29 14:40:39 +00:00
wscript.exe hidden.vbs nextcloudPortableEncryptionHelper.exe %passwd% %1