anderson.scottglen
2007-07-13, 06:37 PM
I've created a lisp that will, when executed, backup a network drawing to a mirror path on the C drive with a timestamp in the filename which enables incremental backups. To avoid abuse, it also checks the directory to see if a previous backup has been created within the past 2 hours. If it finds such a drawing, the program exits and will not back up (of course there is a command to force a backup if needed, but that is not related to my question)
A friend of mine would like to use this as well but would like to use a value other than 2 hours. I could copy the file and alter the backup check time for him, but that is a poor solution in my mind. This potentially could be used by my office (and perhaps the company with enough fine tuning) from a centralized network location and that solution would no longer be viable. Were I to use a global variable, a user would have to constantly be changing from the default, either per session or per drawing depending on their settings. This would be exceedingly annoying.
So, going beyond local and global variables, is the next step to assign a registry key? I am an amateur programmer at best and this is far beyond my comfort zone. I am looking for advice in this matter. More background: I am a CAD tech, not an employed programmer or CAD manager. I only know lisp/Vlisp, so if it couldn't be accomplished by these means it's probably beyond my immediate skill.
Should I shy away from this territory? Or is this something I could learn to do in half a day or less?
A friend of mine would like to use this as well but would like to use a value other than 2 hours. I could copy the file and alter the backup check time for him, but that is a poor solution in my mind. This potentially could be used by my office (and perhaps the company with enough fine tuning) from a centralized network location and that solution would no longer be viable. Were I to use a global variable, a user would have to constantly be changing from the default, either per session or per drawing depending on their settings. This would be exceedingly annoying.
So, going beyond local and global variables, is the next step to assign a registry key? I am an amateur programmer at best and this is far beyond my comfort zone. I am looking for advice in this matter. More background: I am a CAD tech, not an employed programmer or CAD manager. I only know lisp/Vlisp, so if it couldn't be accomplished by these means it's probably beyond my immediate skill.
Should I shy away from this territory? Or is this something I could learn to do in half a day or less?