Section 9: TSP command reference Series 2600B System SourceMeter® instrument Reference Manual
9-168 2600BS-901-01 Rev. F/August 2021
opc()
waitcomplete()
print("1")
Also see
Status model (on page 12-1)
waitcomplete() (on page 9-415)
os.remove()
This function deletes the file or directory with a given name.
Usage
success, msg = os.remove("filename")
A success indicator (true or nil)
A message value (nil or an error message)
A string representing the name of the file or directory to delete
Details
Directories must be empty before using the os.remove() function to delete them.
If this function fails, it returns nil (for success) and an error message string (for msg).
Example
Delete the file named testFile.
Also see
os.rename() (on page 9-168)
os.rename()
This function renames an existing file or directory.
Usage
success, msg = os.rename("oldname", "newname")
A success indicator (true or nil)
A message value (nil or an error message)
String representing the name of the file or directory to rename
String representing the new name of the file or directory