Prevent Batch file edits

  dalek111 22:03 20 Jan 09


I would be grateful if anyone could tell me if there is any way to stop a batch files code being edited, while allowing the code to run. I know that this is possible without use of user account policies or restrictions. Thanks in advance

  MAJ 22:15 20 Jan 09

A batch file compiler? click here

  Switcher 22:17 20 Jan 09

In command prompt type attrib filename.bat R

  MAJ 22:26 20 Jan 09

Or stick "bat to exe" into Google.

  dalek111 22:29 20 Jan 09

Switcher: Thanks for replying. I tried what you said and got this...

D:\>attrib test.bat R
Parameter format not correct -

Any ideas?

  Switcher 22:32 20 Jan 09

Giving the file the attribute R will make it read only. You could also give H to make it hidden and S to make it a system file. i.e Attrib x.bat SHR
To remove attrib so that you can edit it use -R

  dalek111 22:34 20 Jan 09

Switcher: Thanks but is going to be too easy to get round. I'm looking at the link provided by MJA (thanks for that by the way), and its looking promising. I'll get bact to you

Thanks for your posts

  dalek111 22:37 20 Jan 09

Yeah, that program looks good. Do you know if there is a similer total freeware program available?

  Switcher 22:40 20 Jan 09

Sorry getting rusty should be Attrib +r :\test.bat
assuming file is in root directory of d:

  Switcher 22:42 20 Jan 09

Mistakes again attrib +r d:\test.bat will make it read only

  MAJ 22:42 20 Jan 09

That was my second post, dalek

"Or stick "bat to exe" into Google"

there's a few of them there but I didn't get time to look through them.

This thread is now locked and can not be replied to.

Intel Coffee Lake 8th-gen Core processors release date rumours

1995-2015: How technology has changed the world in 20 years

Framestore’s haunting post-WWII title sequence for new BBC series SS-GB

Best iPhone games 2017 | Best iPad games 2017: 162 fantastic iOS games that you need to play right…