06-29-2009 11:52 AM
Solved! Go to Solution.
06-30-2009 10:43 AM
There is not a way in CVI to delete workspaces and all their associated files. You can see which files are associated with a workspace by opening the workspace in either CVI or a text-editor and looking at the files inside that text file.
To help you out I have created some base uncommented code in LabVIEW that will go through all the files in your cws workspace file and will prompt then delete all the files in the workspace.
There are two things to note about this quick program. 1) It does not delete the actual workspace file (this isn't a very hard addition to add) and 2) workspace dependies with long paths are broken up into multiple lines in the cws file. This DOES NOT combine those lines and will likely result in an error. Concatinating these lines (if you should need it) is a task left up to you but should be fairly trivial.
This program was made in LabVIEW but there is no reason a python script or even a few well crafted grep commands could not achieve the same functionality.
Regards,
Steven Zittrower
Applications Engineer
National Instruments
06-30-2009 11:02 AM
StevieZ wrote:
This program was made in LabVIEW but there is no reason a python script or even a few well crafted grep commands could not achieve the same functionality.
Or even a CVI progam
JR