beautypg.com

Utilities, Chapter three – Teledyne LeCroy WaveExpert series Automation Manual User Manual

Page 170

background image

Chapter Three

Control Reference

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.

Defines the directory which will be used for the operations in this automation node.

Directory

Any number of characters

FileName

Range

Description

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.

DeleteAll

Action

' 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

Description

Deletes the file named by the Filename control

DeleteFile

Action

' 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

Description

CreateDir

Action

DeleteAll

Action

DeleteFile

Action

Directory

FileName

916435 RevA

3-103