Navigation:  Reference > Commands >

Delete File

Print this Topic Previous pageReturn to chapter overviewNext page

This command will delete a file from the disk.

 

DELF f/c/eRequired - The name of the file to be deleted.

 

COMMENT

No error is reported if the file is not found and nothing is returned if it is.

 

NOTE: Warning to use this command you can not have the file you are trying to delete open make sure you close the file first!!.

EXAMPLE

define del_ok type L

define temp_file_name type A size 200

delete_file:

temp_file_name = 'myfile.doc'

Ask 'Is it ok to Delete the file myfile.doc.'

if ask()

  delf temp_file_name

endif

ret

 

SEE ALSO

RENF, DELF(), RENF()

 

 


Page url: http://www.cassoftware.com/tas/manual/deletefile.htm