[Ch...] Posted yesterday at 04:16 PM Share Posted yesterday at 04:16 PM Simple question, but does anyone have a good strategy to allow inspection_post_load.bat to open two files at the same time? Current state: I use this to open a change log/comment log text file. I also want it to display the pdf bubble print. It works, except the operator must close the text file before the bubble print opens. Desired state: I want both the text file and the pdf to open at the same time. I know I could use inspection_post_load.bat to call another script that will open both at the same time, but I'm trying to make this simple for the guys I'll be training to do this. Link to comment Share on other sites More sharing options...
[Ch...] Posted yesterday at 04:30 PM Author Share Posted yesterday at 04:30 PM Sorry guys, classic case of not googling my question before I post. This easily achieved by using the start command start "" "Q:\CMM Programs\Change Log.txt" start "" "Q:\CMM Programs\CMM Bubble.pdf" 3 Link to comment Share on other sites More sharing options...
[Pi...] Posted 8 hours ago Share Posted 8 hours ago Did you tried to use PCM file not *.bat but *.txt? inspection_post_load_pcm.txt in that file you can try to use command called systemCall if you have PCM module and then your command would look like (as example) systemCall("C:\Program Files\Notepad++\Notepad++.exe Q:\CMM Programs\Change Log.txt") systemCall("C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe Q:\CMM Programs\CMM Bubble.pdf") you can try to test this on *.bat file but I'm not sure if those commands will work in *.bat file this txt file you can placed inside each specific inspection plan folder this way it can be customized per program. The only downside is that txt file you are opening can be edited, so I would recommend to use PDFs for all files. To open PDF files in separate windows you need to change option in Adobe settings Or to try to add extra command /n in the systemCall command systemCall("C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe /n Q:\CMM Programs\Change Log.pdf") systemCall("C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe /n Q:\CMM Programs\CMM Bubble.pdf") when both files would be used as pdf file type. I hope that will help. 1 Link to comment Share on other sites More sharing options...
[Ch...] Posted 4 hours ago Author Share Posted 4 hours ago Please sign in to view this username. All good ideas. I've yet to find a difference in function between .bat files and pcm.txt files. I use them interchangeably depending on what mood I'm in. I find it funny, the Calypso_basic_cnc documentation references the .bat files, but the PCM documentation references the pcm.txt files. I like having the .txt file editable. I've trained my operators to add notes they think will be helpful to other operators who run the parts less often. Its grown to be much more than just a change log; a words of wisdom/change log in one so to speak. I'm trying to get out of the habit of just using "call someRandomVbsScrips.vbs" or "python someRandomPythonScript.py" because my current programmers aren't really familiar with vbs or python scripts. I try to tell them that with AI everyone is a programmer now, but they won't really listen and it just makes more work for me. However, I really like how you can make the vbs and python scripts run in hidden shells. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in