Jump to content

Program specific results folder location


Recommended Posts

Hello All,

Is there a way to change the folder where the results are held for a specific program?

I know you can go into setting/environment and change the global path that way. I am looking to change the results location for a specific program. 

Edit: I am specifically looking to export the Excel report. 

TIA!

Edited
Link to comment
https://qualityforum.zeiss.com/topic/25851-program-specific-results-folder-location/
Share on other sites

I've been through this but not for a long time.  Best I could come up with was the following:

Excel report outputs are handled as "results files" and thereby will be stored wherever results files are pointed

- Extras/settings/environment/paths *can only be changed by the Master account*

I was unable to isolate Excel outputs from other "results files" so it's not a complete solution.

image.thumb.png.b9bc257c16f116b84ddbe6adc05c5abe.png

 

Please sign in to view this quote.

Appreciate the response. Unfortunately, this is the "global" method I mentioned in the OP. 

I am looking to change this location for an individual program. This can likely be done with PCM in the post setting, I just don't know the best method to proceed. 

In your inspection_start_pcm.txt, to get the actual partnumber incemental, because it changes after calculation:

vPNb=getRecordHead("partnbinc")

in your calculation_end_pcm.txt:

vXLSfile=getRecordHead("planid")+"_"+vPNb+".xls"
vXLSpath="C:\Users\Public\Documents\Zeiss\CALYPSO\workarea\results\"+vXLSfile
vCOPYfile="yourFilename.xls" //or vXLSfile
vCOPYpath="yourCopypath\"+vCOPYFile
copyFile(vXLSpath,vCOPYpath)
deleteFile(vXLSpath)  //if you want to delete origin

 

  • Like! 1
filePathExcel = directoryPath("results") + "\" + getRecordHead("planid") + "_" + getRecordHead("partnbinc") + ".xls"
scriptPath = "Wscript " + directoryPath("results") + "\deleteFile.vbs"
newFolder="C:\Temp\"  + getRecordHead("planid") + "_"  + getRecordHead("partnbinc") + ".xls"


//wait(10)    //if the file is not copying, uncomment this delay to give it more time
if fileExists(filePathExcel) then
  copyFile(filePathExcel,newFolder)
  deleteFile(directoryPath("results") + "\temp.txt")
  addToFile(directoryPath("results") + "\temp.txt",  filePathExcel)
  systemCallWithWait(scriptPath)
endif

From this knowledge base article.

 

https://portal.zeiss.com/knowledge-base?id=722231

  • Like! 1
  • Thank you! 1

I suppose it would depend on if the report_end.bat initializes before the post settings of the program. I'm not sure off the top of my head. I would do a test with just copying the program from the default folder. If it doesn't copy, the .bat had already moved it. You could then change the directory of the top line, filePathExcel, to your server location instead of the default results location.

×
×
  • Create New...