|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > File > CopyFileListToClipboard |
available from build: 20130125 |
The command copies in the Clipboard a file list passed as a TXT file in input to the command.
call DBWShell("CopyFileListToClipboard txtFileList")
txtFileList |
a text file containing a list of paths; full file path for each line |
The TXT file must be encoded in ANSI.
DBWGetValueFromMemory in Standard Library
DBWSetValueToMemory in Standard Library
Sub main()
DBWInit(true)
Set fs = CreateObject("Scripting.FileSystemObject")
Set tfolder = fs.GetSpecialFolder(TemporaryFolder)
txtFileList = tfolder & "\myFileList.txt"
If fs.FileExists(txtFileList) then
fs.DeleteFile(txtFileList)
End if
Set a = fs.OpenTextFile( txtFileList, ForAppending, True )
a.WriteLine("C:\temp\myFile1.PDF") ' add here your file full path names
a.WriteLine("C:\temp\myFile2.DXF") ' add here your file full path names
a.WriteLine("C:\temp\myFile3.DWG") ' add here your file full path names
a.Close
DBWShell("CopyFileListToClipboard " & Replace(txtFileList," ","|") )
End Sub