Page 1 of 1

Problem with .bat

Posted: 03 Sep 2020 00:54
by mezziu
Dear Forum,

I've this code in the batch file:

#start code batch file
cd\
cd C:\SOGEI_enviroment
openssl smime -decrypt –in RICEZIONE/dati.p7m.enc –inform der –binary -out RICEZIONE/dati.p7m.zip –recip CERTS/cifra.pem -passin:password
exit



when I launch the batch file the code is transformed like this:

C:\SOGEI_enviroment\LIB\BATCH>cd C:\SOGEI_enviroment
C:\SOGEI_enviroment>openssl smime -decrypt ÔÇôin RICEZIONE/dati.p7m.enc ÔÇôinform der ÔÇôbinary -out RICEZIONE/dati.p7m.zip ÔÇôrecip CERTS/cifra.pem -passin pass:passowrd



while if I write it by hand on cmd the code is not changed.

The code is encoded in UTF 8 but even in ANSI it doesn't work for me.

Re: Problem with .bat

Posted: 03 Sep 2020 11:40
by ShadowThief
Somehow, several of your dashes have become Unicode characters. Either rewrite the code by hand, or copy the dash from "-decrypt" onto the other dashes, since that one was unchanged.