DarkCloud 0 Report post Posted July 28, 2010 Hello. I was wondering what is the code in VB for deleting a particular folder in a system when the created exe file is run. Any help will be appreciated. Share this post Link to post Share on other sites
JorgeJ 0 Report post Posted September 1, 2010 Hello. I was wondering what is the code in VB for deleting a particular folder in a system when the created exe file is run. Any help will be appreciated. You can use: Kill 'filename'or you can set a reference to the Microsoft Scripting Runtimeand use it in your code asDim fso As FileSystemObjectSet fso = New FileSystemObject Share this post Link to post Share on other sites
BubbaBeans 0 Report post Posted October 15, 2010 Depends on which version of vb you're using. I'm using visual studio 2010... when I delete a file I use File.Delete(Path and name of file) And it takes care of it. Share this post Link to post Share on other sites