Delete a file: Difference between revisions
Content added Content deleted
Line 1,237: | Line 1,237: | ||
File_Delete("/input.txt", OK) |
File_Delete("/input.txt", OK) |
||
File_Rmdir("/docs")</lang> |
File_Rmdir("/docs")</lang> |
||
=={{header|VBA}}== |
|||
<lang vb>Option Explicit |
|||
Sub DeleteFileOrDirectory() |
|||
Dim myPath As String |
|||
myPath = "C:\Users\surname.name\Desktop\Docs" |
|||
'delete file |
|||
Kill myPath & "\input.txt" |
|||
'delete Directory |
|||
RmDir myPath |
|||
End Sub</lang> |
|||
=={{header|VBScript}}== |
=={{header|VBScript}}== |
||
Line 1,262: | Line 1,274: | ||
</lang> |
</lang> |
||
=={{header|Visual Basic .NET}}== |
=={{header|Visual Basic .NET}}== |
||
'''Platform:''' [[.NET]] |
'''Platform:''' [[.NET]] |