cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Copying a non pro/e file

msteffke
12-Amethyst

Copying a non pro/e file

Guru's
In Pro/Toolkit I'm visiting components in assembly, and exporting
drawings as a cgm file to a temporary workorder folder. There are
certain parts that are standard, and I would rather just copy the
existing .cgm from the master cgm folder to my workorder job folder.
How can I copy a file within the program, is there a toolkit function or
any filecopy function? Not looking for exact syntax, just a rough of
what method to use.

Thanks,
Mark Steffke
Engineering System Administrator
The Delfield Company
Manitowoc Foodservice
T 989.775.9215 or 989.773.7981, ext 12484
Integrity, Commitment to Stakeholders, and Passion for Excellence


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
4 REPLIES 4
msteffke
12-Amethyst
(To:msteffke)

Or is there a way to call a dos batch file from within your dll?

Mark Steffke
Engineering System Administrator
The Delfield Company
Manitowoc Foodservice
T 989.775.9215 or 989.773.7981, ext 12484
Integrity, Commitment to Stakeholders, and Passion for Excellence

There is a system() function to run any command which is platform
independent.
system() call has a side-effect. On windows it opens a dos window when
executing command (like copying a file) which is annoying for the user.

I would suggest to use CopyFile() function on windows.
msteffke
12-Amethyst
(To:msteffke)

Thanks, good advice. Will give that a try.

Mark Steffke
Engineering System Administrator
The Delfield Company
Manitowoc Foodservice
T 989.775.9215 or 989.773.7981, ext 12484
Integrity, Commitment to Stakeholders, and Passion for Excellence

The system() call will display the command prompt window. Rather, try
CreateProcess().

Alternatively, write your own code to copy the file.

Bob

Bob Monat
Jerand Technical Services, Inc.
bob@jerand.com
www.jerand.com
1-317-875-6087


On Fri, Jan 25, 2013 at 3:48 PM, Steffke, Mark J <mark.steffke@manitowoc.com<br/>> wrote:

> **
> Thanks, good advice. Will give that a try.
>
> *Mark Steffke*
> Engineering System Administrator
> The Delfield Company
> Manitowoc Foodservice
> T 989.775.9215 or 989.773.7981, ext 12484
> *Integrity, Commitment to Stakeholders, and Passion for Excellence*
>
>
Top Tags