Jump to content

inspection_post_load.bat behavior


---
 Share

Recommended Posts

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

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"

 

  • Like! 3
Link to comment
Share on other sites

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

image.png.aa8f8b455be5332c39025705bfd3a59a.png

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.

Link to comment
Share on other sites

 Share

×
×
  • Create New...