Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
I'm setting up a startup that is for editing the user .ui file from the working directory of Creo. After the user exits Creo, I want to copy that .ui file to a different location. I'm trying to use the pro_wait option to do this.
My command to start Creo looks like this:
rem ** Start Creo
start "PF" "%CreoPath%\Parametric\bin\parametric.exe" pro_wait "P:\Shared drives\CreoWorkspace\scripts\startup\%CREOSHORTVER%\move_users_ui.bat"
It starts up Creo with only one .ui file read, so I can ensure they are only editing their personal .ui. However after the user exits Creo it's not running the batch file to move the .ui file.
Is there something wrong with my syntax above????
I've verified in a command prompt that the batch file works with the variables: What I typed is underlined.
C:\Users\Dell>cd C:\Users\Dell\pro\Creo_10_Home
C:\Users\Dell\pro\Creo_10_Home>call "P:\Shared drives\CreoWorkspace\scripts\startup\c10\CreoVersionBuild.bat"
C:\Users\Dell\pro\Creo_10_Home>"P:\Shared drives\CreoWorkspace\scripts\startup\%CREOSHORTVER%\move_users_ui.bat"
C:\Users\Dell\pro\Creo_10_Home>move "C:\Users\Dell\pro\Creo_10_Home\creo_parametric_customization.ui" "C:\Users\Dell\pro\Creo_10_Home\configs\creo_parametric_customization.ui"
1 file(s) moved.
The content of my script to run after exit is a single line:
move "%CD%\creo_parametric_customization.ui" "%CD%\configs\creo_parametric_customization.ui"