hexagon logo

Script to make a change in all programs?

All of our programs are set up to automatically save reports to a specific directory based on part number. IT has decided they need to re-map our entire network which means I need to edit all of our programs to save reports according to the new network mapping scheme. Is it possible to use a script for this task? If so, does anyone have an example of how to do this?
Parents
  • To avoid getting myself into this sort of situation I have a text file that contains all of the components of my file paths that I don't have direct control over. I read in this text file at the beginning of every program and use the information to create the paths for saving off data. This way if something like what just happened to you happens to me I can just change a few lines in that text file and all of my programs will adapt to the new directory structure without any modification. This won't be much help to you with your current situation but may be something to consider in the future.
Reply
  • To avoid getting myself into this sort of situation I have a text file that contains all of the components of my file paths that I don't have direct control over. I read in this text file at the beginning of every program and use the information to create the paths for saving off data. This way if something like what just happened to you happens to me I can just change a few lines in that text file and all of my programs will adapt to the new directory structure without any modification. This won't be much help to you with your current situation but may be something to consider in the future.
Children
No Data