|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > File > DBWCopyFileToDir |
Copies a file into a given directory.
Sub DBWCopyFileToDir(FullFileName, DestinationDir)
FullFileName |
Required. Always the name of a file. |
|---|---|
DestinationDir |
Required. DestinationDir is the name of an existing Directory. |
For further information on the parameters please refer to the vbs function CopyFile
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"