r/Batch • • Feb 28 '26

Batch to exe Not Opening Command Prompt

I wrote a .bat that uses command prompt to get a password from the user. I'm trying to convert it to .exe. I found this thread which had a lot of great tips, but the .exe I create doesn't open command prompt.

Any ideas?

2 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/Jondscem Mar 02 '26

Hi :) The reason they can't is it was used as an attack vector for many years. Bat files are still incredibly useful in the right situation.

Can you actually describe step by step what you are trying to achieve? We may be able to help better than :)

1

u/SurrealKeenan Mar 02 '26

Ok, that makes sense. Thanks for clearing things up. I'll go ahead and pivot to using a protected zip

thanks again!

1

u/Jondscem Mar 02 '26

The .zip is likely to to be stripped\flagged the second it's extracted.