Perfect .. Thanks a lot
Also I wanted like any application can encrypt the contents of the batch file.
so that if any one open the batch file could not see in... and only can execute it
and also there should be one decrypt option...
Bill Prew
Just so you are aware, for people who are clever, this doesn't really solve the problem. While the BAT file will be encrypted and stored in an EXE, when that EXE is actually run the BAT file is decrypted and saved in a readable format in a temporary file on the system, That temporary file is then executed as a normal BAT script, and afterwards deleted. So while the script is running the file is visible, and afterwards it may be available to recover and view via trash and undelete. So don't trust this for anything too secure, like a BAT file that has password or other sensitive info in it...