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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Copying a non pro/e file

msteffke
14-Alexandrite

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
14-Alexandrite
(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

vinaym
1-Visitor
(To:msteffke)

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
14-Alexandrite
(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*
>
>
Announcements


Top Tags