Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,561 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,901 people online right now. Registration is fast and FREE... Join Now!




delete file using VB

 
Reply to this topicStart new topic

delete file using VB, VB

HemantKumarPrajapat
11 May, 2008 - 10:41 PM
Post #1

New D.I.C Head
*

Joined: 11 May, 2008
Posts: 1

Sir,
Please send me code, that how can i delete any .exe file from any particular location from our system.

thanks

User is offlineProfile CardPM
+Quote Post

Zhalix
RE: Delete File Using VB
11 May, 2008 - 10:59 PM
Post #2

D.I.C Head
**

Joined: 7 May, 2008
Posts: 218



Thanked: 9 times
My Contributions
I'd use the kill function. It works like this

Kill "C:\....."


So if you wanted to delete a .exe named "Apple" that was stored in C:\Program Files then...


CODE

Kill "C:\Program Files\Apple.exe"


This post has been edited by Zhalix: 11 May, 2008 - 11:00 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 11:37PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month