Z
Z
zimj2022-04-13 14:26:52
cmd/bat
zimj, 2022-04-13 14:26:52

Bat. Lines from file to variables. How?

Good time of the day! Help, please, knowledgeable people)
Using the CryptoPro utility command, I display the list of certificates on the root token in the
CSP file (Type: 80) v4.0.9019 KC1 Release Ver: 4.0.9963 OS: Windows CPU: AMD64 FastCode: READY: SSSE3.
AcquireContext: OK. HCRYPTPROV: 16674800
\\.\Aktiv Co. ruToken 0\crl1
\\.\Aktiv Co. ruToken 0\crl2
\\.\Aktiv Co. ruToken 0\crl3
OK.
Total: SYS: 0.141 sec USR: 0.016 sec UTC: 0.844 sec
[ErrorCode: 0x00000000]

Need lines that start with \\.\Aktiv Co. ruToken 0\ (there may be a different number), set as variables, so that later you can use CryptoPro utilities in the next command (output data about the certificate)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2022-04-13
@hint000

https://www.google.com/search?q=cmd+read+file+into...

spoiler
Да, и читайте правила, пункт 2.2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question