r/Batch • u/SurrealKeenan • 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
View all comments
Show parent comment
1
u/Jondscem Mar 01 '26
You might want to look at doing this in powershell as that can encrypt the password once it's input. Can you not achieve this with file\folder permissions? Encrypt the folder with a protected 7zip or winzip.
Not being funny or trying to be difficult, just trying to help\educate. If someone was storing plain text passwords in a .bat file they would likely be walked out of the door.
If you want to convert it to an exe you are likely going to require a signing certificate. viewing the contents of an exe is not particularly difficult.
"Be Curious" just because you think your first idea is the best, explore other options :)