|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > File > DeleteFile |
Delete the specified file, calling DBWAclServer if necessary.
call DBWShell("DeleteFile FullFileName")
FullFileName |
the entire (comprehensive of all directories) name of the file to delete. Please note any space char in filenames and paths must be replaced by "|" char. |
This command always deletes the file, no matter of the login personality.
Please note together with the passed file, also the __DBWUNCHK__.* file will be deleted (if existing). The removal of PDM internal files (.gz, .tree, .pdf, .jpg) is not automatic; such files can be retrieved through the GetHiddenFilesList command and then they've to be removed explicitly by the script.
File2BeDel = "c:\temp\my test folder\test.asm"
call DBWShell( "DeleteFile " & Replace(File2BeDel," ","|"))
if (okDBW = False) then exit sub