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

Copying a non pro/e file

Marble

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

4 REPLIES 4

Copying a non pro/e file

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

Copying a non pro/e file

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.

Copying a non pro/e file

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

Copying a non pro/e file

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*
>
>