DeleteFile

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > File >

DeleteFile

Description

Delete the specified file, calling DBWAclServer if necessary.

Syntax

call DBWShell("DeleteFile FullFileName")

Parameters

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.

Remarks

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.

Example

File2BeDel = "c:\temp\my test folder\test.asm"

call DBWShell( "DeleteFile " & Replace(File2BeDel," ","|"))
if (okDBW = False) then exit sub