Submitted by Robse-ponte on Thu, 02/04/2016 - 13:36
Forums:
Hello,
I could need some help with the following issue:
If I write the following command into a batch file, an import into Teamcenter will start.
call C:\bin\import_file -u="u" -p="u" -g="role" -f="K:drawing.pdf" -type="pdf" -d="PDF" -ref="PDF_Reference" -de="r" -item="D" -revision="A" -ie="y"
How do I write this as Powershell-command? I tried so many different versions like shown in google, but I couldn´t get this to run.
I am just an engineer...
Best regards
Solution
To start import_file.exe you need further variables. These can be saved with a temporary file and then can be started all toghether. Example that helped me a lot:
1.8. Program: Retain Changes to Environment Variables Set by a Batch File
https://www.safaribooksonline.com/library/view/windows-powershell-cookbo...
Best regards