LightbulbBatch files help

Posts 12 of 2 · Page 1 of 1
Batch files help
Can I truly encrypt a batch file?
Like.. If I press "edit", I can usually just see the password or w/e as it is so.. can I make it look like when you try to open a .exe with notepad?
I only think about it because I've been studying for too long but I will still be glad if you guys could share your ideas with me :P
Also, we should probably start from the same point so I guess we can all use the following code:
Code:
@echo off
set /a newcode=12345
:start
set /p code=Insert code here.
if %code%==%newcode% goto right
if not %code%==%newcode% goto wrong
:right
set /p YN=Good job! Type Y to change the default code, or N to exit.
if %YN%==Y goto Y
if %YN%==N goto exit
:Y
set /p newcode=Type the new code and press any key.
goto start
:wrong
echo Wrong code! press any key to try again.
pause
cls
goto start
:exit
exit
Oh and don't start telling me to create a .exe.. Im not trying to practically do anything im simply curious to know
Your best bet will be to use some bat to exe application regardless if you want to hear it or not. Batch files are interpreted scripts, so unless you create some layer between the batch interpreter and your file, the system will have no way to read the file if it's not in the standard text form. Other than that you could store the batch file in a self-extracting (sfx) format of sorts and have it auto-execute the batch file when it's opened.
Posts 12 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?