Task

Delete a file called "input.txt" and delete a directory called "docs".

This should be done twice: once "here", i.e. in the current working directory and once in the filesystem root.




' FB 1.05.0 Win64
 
' delete file and empty sub-directory in current directory
 
Kill "input.txt"
RmDir "docs"
 
' delete file and empty sub-directory in root directory c:\
' deleting file in root requires administrative privileges in Windows 10
 
'Kill "c:\input.txt"
'RmDir "c:\docs"
 
Print "Press any key to quit"
Sleep
 