Problem with .bat

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
mezziu
Posts: 1
Joined: 03 Sep 2020 00:42

Problem with .bat

#1 Post by mezziu » 03 Sep 2020 00:54

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.

ShadowThief
Expert
Posts: 1160
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Problem with .bat

#2 Post by ShadowThief » 03 Sep 2020 11:40

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.

Post Reply