thanks to graham and FB
are there another way to keep extension still .bat but with content encrypted?
A batch file is a plain text file. But maybe you can make a .bat file call an exe file. Better, though, to solve the problem you seem to have with the "other user" you mentioned.
If you mean ***any*** "other user" or person who may have access to what you want to hide, and they have an indefinite amount of time available, ***any*** scheme of concealment must be regarded as crackable. A batch file would be especially leaky. The problem is that passwords are meant to be carried in people's heads. The whole point of a password is that it is never written down or stored anywhere. You did know this?
If you are thinking of one person only, who has limited batch knowledge, then something like this might work
@echo off
setlocal
%1 %0 :: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
set A=%5&set B=%6&set C=%8&set D=%3
for %%? in (1 2 3 4 5 6 7 8 9) do shift
set A=%C%%7%A%&set C=%D%%4%B%&set D=%7
for %%? in (1 2 3 4 5 6 7 8 9) do shift
echo %A% %C%%2%2 %8%D%%4!
Trouble is, if your batch knowledge is as limited as theirs is, you won't easily be able to deploy such a method, (you need to be able to understand how the code works!) and if they read this thread, they'll know what you did!
S:\Test\Batch\encrypt>crypt-demo.bat
GOD BLESS YOU!