Stop Editing Batch files...

  • Thread starter Thread starter sunny.it
  • Start date Start date
S

sunny.it

Guest
Hello,

Can we stop the batch files being edited by any one else, like if there is a
batch file, we can simply right click and by selecting edit, it will open and
any one can see the text in it. Can we put a password on this thing so that
before opening, any one should be prompted for password if he opens the file
.... Or is there any other way we can stop this thing.
Bye.
 
Re: Stop Editing Batch files...


"sunny.it" <sunnyit@discussions.microsoft.com> wrote in message
news:BC39845F-808E-4FD4-AD4A-DE1F1DB07DEC@microsoft.com...
> Hello,
>
> Can we stop the batch files being edited by any one else, like if there is
> a
> batch file, we can simply right click and by selecting edit, it will open
> and
> any one can see the text in it. Can we put a password on this thing so
> that
> before opening, any one should be prompted for password if he opens the
> file
> ... Or is there any other way we can stop this thing.
> Bye.


You can set its NTFS permissions so that it is read-only, same as for any
other file.
 
RE: Stop Editing Batch files...

You'd have to run a vbscript (.vbs) or something similar first. If you go
this route you might have to alter your bat code to run in vb.

Make Passwords Using an InputBox (Scripting Guy)
http://www.microsoft.com/technet/scriptcenter/resources/qanda/feb05/hey0204.mspx

--
Brandon Dub., TO canada, Shell ''explorer''


"sunny.it" wrote:

> Hello,
>
> Can we stop the batch files being edited by any one else, like if there is a
> batch file, we can simply right click and by selecting edit, it will open and
> any one can see the text in it. Can we put a password on this thing so that
> before opening, any one should be prompted for password if he opens the file
> ... Or is there any other way we can stop this thing.
> Bye.
 
Back
Top