<< Click to Display Table of Contents >> Navigation: OLE Automation > Application > Methods > SpaceObServer.Application.ExportAllFiles |
Description
Exports a list of all files that are located in the selected directory (in any depth) to a plain text file.
Syntax
ExportAllFiles (ExportPath : <String>, AppendToFile : <Boolean>)
Parameters
ExportPath |
The full path of the export file (including the exported file name). |
AppendToFile |
Indicates, if the export will be appended to an existing file, or if an existing file will be overwritten. |
Example
PowerShell:
$SOS.RootDirecory = "C:\Temp\"
$SOS.ExportAllFiles("C:\Reports\SOS\ListOfFiles.txt", $False)
VBS:
SOS.RootDirecory = "C:\Temp\"
SOS.ExportAllFiles "C:\Reports\SOS\ListOfFiles.txt", False
Creates a new plain text file named "ListOfFiles.txt" at "C:\Reports\SOS". This new file will include the full path of all files located in the selected file system branch of the chosen root directory "C:\Temp".