I am using the following command to copy a PDM file when submitted to workflow. Unfortunately, when you add to UNC paths together, you exceed the command line length of 256 characters pretty quickly. This command works perfectly when length is not a problem. Are there other options? Is there a logical name of some sort that might already be available to cut the path shorter to the source? I need some sort of solution that is hands-off to the user, and does not require Solidworks to be running, or to launch when the files are submitted to the workflow. I can cut my destination path some, but that will only get me about half back of what I need.
Thank you!