DirtSimpleCNC
New Coder
Howdy all, have a question.
At my job we deal with CNC programs regularly. Per our procedures the files are given a certain name on the computer, say "Part #, Revision #, Operation #" like "1234Rev1Op10". The issue is the first line of the program would have the program number and op number followed by the file name such as:
O23410 (1234Rev1Op10);
Rest of;
The code;
The problem arises when we try to then save the program BACK from the machine as it changes the file name to the program name of O23410.nc
Instead of the actual file name. This results in me having to open every file, find the name and rename them EVERYTIME WE SAVE A PROGRAM FROM THE MACHINE!
I have zero programming knowledge and have struggled to find an answer but id like to find what language would let me build something to automatically open a file, find the information in-between the first set of parentheses found, and rename the file with that info.
I'm not asking for the answer per se, as I see a great oppurtunity to learn something new! I just have zero clue where to start....
At my job we deal with CNC programs regularly. Per our procedures the files are given a certain name on the computer, say "Part #, Revision #, Operation #" like "1234Rev1Op10". The issue is the first line of the program would have the program number and op number followed by the file name such as:
O23410 (1234Rev1Op10);
Rest of;
The code;
The problem arises when we try to then save the program BACK from the machine as it changes the file name to the program name of O23410.nc
Instead of the actual file name. This results in me having to open every file, find the name and rename them EVERYTIME WE SAVE A PROGRAM FROM THE MACHINE!
I have zero programming knowledge and have struggled to find an answer but id like to find what language would let me build something to automatically open a file, find the information in-between the first set of parentheses found, and rename the file with that info.
I'm not asking for the answer per se, as I see a great oppurtunity to learn something new! I just have zero clue where to start....