FileCopy

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > File >

FileCopy

available from build: 20070903

Description

This command allows the execution of a FileCopy with administrative priviledges, when needed.

Syntax

call DBWShell("FileCopy from to CanOverWrite useDBWServer")

Parameters

from

the file that will be copied

to

the destination file

CanOverWrite

0: don't overwrite destination file
1: allows the overwriting of the destination file

useDBWServer

0: do nothing
1: converts the from and to into UNC paths, then performs the file copy with administrative priviledges by using DBWServer.

Remarks

When not running under DBWServer, it performs the standard file copy functionality.

Example

DBWShell("FileCopy c:\temp\file1.doc c:\documents\file2.doc 1 0")