I would like to find a way to password protect a bat file, so that when it is executed, the first thing it does is require a password to go any further.
Oh this site was still there last night and offered a free app i think it was called RunAs User or something, basically it would allow you to encrypt and password protect scripts.
Keep an eye out and see if it appears if not put a post in the Windows XP forum for gpalmer711 i 'think' he wrote it and will possibly be able to advise.
Not that I am aware of. You could set NTFS Permissions on the folder where the batch file resides.
If the batch file is part of a scheduled task just make sure the system account has access to the folder. But, we know that anyone with admin access on the server can change permissions. You can also password protect and encrypt the folder where the batch file resides using a third party tool such as:
There are some basic programs that come with the flash thumb drives that can encrypt files in any directory you choose. This will prompt you for a password. If authenticated correctly, it will give you full access to the file. You may already have this if you own a flash drive. If you dont, u can probably find one on the net or go buy a thumb drive and move the program to you pc.
I can not think of any other way to protect the execution of the bat file. You could possibly set the file to only be accessed by certain users such as an administrator. Im not sure of your application so i dont know if that would work for you or not. Will it be on a end users desktop logged in under that users name, but dont want them to be able to execute it? If that is the case, you might want to try my original idea!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.