If your mapkey spans multiple lines, use a backslash ( \ ) at the end of each line, except the last one.
While you can type these into config.pro , it is safer to use the Mapkey Dialog in Creo. When recording, choose "OS Script" from the "OS Command" tab.
mapkey .silent @SYSTEMstart /B "" "C:\Scripts\silent_cleanup.bat"; Use code with caution. .silent creo mapkey os script example
What are you trying to automate with the OS script?
When executing operating system scripts from within PTC Creo, minor syntax discrepancies can cause the system to freeze or fail. Adhere to these operational standards: If your mapkey spans multiple lines, use a
This approach is particularly useful for batch processing or scheduled automation tasks.
Standard Mapkeys record internal Creo commands. An OS Script Mapkey, however, sends a command directly to your Windows Command Prompt (CMD) or Linux Shell. This allows you to automate file management, sync with PDM systems, or open third-party analysis tools without leaving your workspace. Step-by-Step: Creating an OS Script Mapkey mapkey
When Creo encounters @SYSTEM , it pauses its internal graphics engine, opens a background command shell (like Windows Command Prompt), executes the text that follows, and then returns control to Creo. The Standard Syntax mapkey shortcut_keys @SYSTEMcommand_to_execute; Use code with caution. Key Execution Rules
For batch processing multiple files, combine VBScript with Creo Distributed Batch:
To run a command, the mapkey uses the @SYSTEM prefix. Example: Open Windows Calculator mapkey c @SYSTEM start calc.exe; Use code with caution. Copied to clipboard
Create a mapkey that:
GMT+8, 2026-3-9 07:44 , Processed in 0.126411 second(s), 37 queries , Gzip On, Redis On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.