Deleting a file in VB

Hewlett-packard / Hp pavilion dv5 notebook...
March 13, 2009 at 02:09:12
Specs: Windows Vista Home, 1.9 GHz / 2812 MB
What is the proper code to delete a file using Visual Basic? Basically, I want something like unlink for Perl.

This is a challenge posting by CNChallenger.

See More: Deleting a file in VB

Report •

March 13, 2009 at 04:57:01
you can use 'Kill'

something like

Dim fileName as string
fileName = "C\Windows\blah.txt"

Kill fileName

Report •
Related Solutions

Ask Question