Loop through a set of .PRG files that are in a common directory. For each file do the following:
1) Open the file
2) Locate a specific command in the program
3) Delete all commands in the program after the command located in step 2
4) Add a set of dimension commands after the command identified in step 2
5) Launch the PCD2EXCEL wizard to output a .CSV file containing the data from the commands added in step 4
6) Close the file
Has anyone had to do something similar? Is anyone willing to share their code for any or all of these actions?
Thanks very much. I’ll work through it and post my updates back here. For the pcd2excel issue I’ll probably put the script into a loop checking the presence of the process and when the process disappears it will continue.
Thanks very much. I’ll work through it and post my updates back here. For the pcd2excel issue I’ll probably put the script into a loop checking the presence of the process and when the process disappears it will continue.