How can I answer a completed cmd question?

Asked

Viewed 505 times

-2

I am automating a process through a file. bat and at a certain point the cmd gives me a question, I wonder how can I do to answer.

I tried to:

    jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk alias_name //Meu comando que solicita uma senha no cmd

    "/senhaultrasecreta" //resposta que devo dar ao cmd

pause

I also tried only "senhaultrasecreta" but cmd tries to run as a file.

Is there any way to automatically reply to this message?

@Edit:

I tried the echo "senhaultrasecreta" but it is not written

1 answer

1


To whom you are interested, I was able to reply using "|" and on the left the message I want to be typed:

echo senhaultrasecreta | jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk alias_name

I don’t understand why so many downvotes and no answer/feedback to my question

Browser other questions tagged

You are not signed in. Login or sign up in order to post.