Utilities – Teledyne LeCroy WaveRunner Automation Command User Manual
Page 187

Automation Command and Query Reference Manual - Control Reference
TableTitle
String
Any number of characters
Range
UTILITIES
app.SaveRecall.Utilities
Controls used to manage files and folders, including the ability to create and delete folders, and the ability to delete
files.
CreateDir
Action
Creates the directory specified in the Directory control.
Description
' Visual Basic Script
Set app = CreateObject("LeCroy.XStreamDSO")
' Create a named directory
app.SaveRecall.Utilities.Directory = "C:\MyDir"
app.SaveRecall.Utilities.CreateDir
Example
DeleteAll
Action
Deletes all files in the directory specified by the Directory control without a cautionary prompt.
Use with care! Files cannot be recovered if deleted accidentally.
Description
' Visual Basic Script
Set app = CreateObject("LeCroy.XStreamDSO")
' Delete all files without showing a yes/no prompt.
app.SaveRecall.Utilities.Directory = "C:\MyDir"
app.SaveRecall.Utilities.DeleteAll
Example
DeleteFile
Action
Deletes the file named by the Filename control
Description
' Visual Basic Script
Set app = CreateObject("LeCroy.XStreamDSO")
' Delete the named file
app.SaveRecall.Utilities.Filename = "C:\MyDir\MyFile.txt"
app.SaveRecall.Utilities.DeleteFile
Example
CreateDir
Action
DeleteAll
Action
DeleteFile
Action
Directory
FileName
1-179
918500 RevA