hexagon logo

"Read only" file protection script?

Does anyone have any ideas on how to auto-magically mark all our .prg files as "read only"?
We're currently supposed to set our .prg's as read only when were done programming them but half the time we forget. This has caused some issues with unintentionally modified programs over the years (the machinists operate the CMM's here).

I'm thinking either a script that can be run once a day/week/etc, and will check all those boxes in our program folder, or a subroutine at the end of each program that will that that particular file as read only (but knowing the file name would have to be automated somehow).

And yes, despite many raised eyebrows at Hexagon, we run thousands of programs as read only and we run them off a server (not a local drive) across 11 different CMM's with no substantial issues. Stuck out tongue closed eyes
Parents
  • thanks . We have an IT company that we've asked to do this, but it's been months and they haven't supplied anything. Maybe another nudge and sending them those tips will do it.

    we might go this route but making sure we don't leave the whole folder editable is a potential problem.

    we have saved recall alignments or read points for all our programs already, nobody does a manual alignment. We have 2000+ programs so we're not going to be reinventing the wheel for marked sets.

    KatmandudaMeow someone had set up the robo copy system at the last place I worked. That might be a future solution as well. Running them off the server has worked well for us though. My Hexagon level III trainer said that running them off the server has potential for corrupting files, but copying them down from the server to run them locally also has potential for corruption so.... Confused
Reply
  • thanks . We have an IT company that we've asked to do this, but it's been months and they haven't supplied anything. Maybe another nudge and sending them those tips will do it.

    we might go this route but making sure we don't leave the whole folder editable is a potential problem.

    we have saved recall alignments or read points for all our programs already, nobody does a manual alignment. We have 2000+ programs so we're not going to be reinventing the wheel for marked sets.

    KatmandudaMeow someone had set up the robo copy system at the last place I worked. That might be a future solution as well. Running them off the server has worked well for us though. My Hexagon level III trainer said that running them off the server has potential for corrupting files, but copying them down from the server to run them locally also has potential for corruption so.... Confused
Children
No Data