DBWCopyFileToDir

<< Click to Display Table of Contents >>

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

DBWCopyFileToDir

Description

Copies a file into a given directory.

Syntax

Sub DBWCopyFileToDir(FullFileNameDestinationDir)

Parameters

FullFileName

Required. Always the name of a file.

DestinationDir

Required. DestinationDir is the name of an existing Directory.

Remarks

For further information on the parameters please refer to the vbs function CopyFile

Example

DBWCopyFileToDir "c:\mydocuments\letters\*.doc", "c:\tempfolder\"

 

You can also specify a different file name:

DBWCopyFileToDir "c:\mydocuments\letters\mydoc.doc", "c:\tempfolder\yourdoc.doc"