Click here to Skip to main content
15,912,504 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralProblem with Classes in VB6 Pin
BernardBouree27-Jun-04 1:00
BernardBouree27-Jun-04 1:00 
GeneralRe: Problem with Classes in VB6 Pin
Steven Campbell27-Jun-04 9:14
Steven Campbell27-Jun-04 9:14 
QuestionHow to delete Temp Files and IE history? Pin
Lucktas26-Jun-04 22:54
Lucktas26-Jun-04 22:54 
AnswerRe: How to delete Temp Files and IE history? Pin
A_Yakout27-Jun-04 0:53
A_Yakout27-Jun-04 0:53 
GeneralRe: How to delete Temp Files and IE history? Pin
Lucktas27-Jun-04 2:52
Lucktas27-Jun-04 2:52 
GeneralRe: How to delete Temp Files and IE history? Pin
A_Yakout27-Jun-04 19:18
A_Yakout27-Jun-04 19:18 
AnswerRe: How to delete Temp Files and IE history? Pin
Aaron Eldreth28-Jun-04 3:45
Aaron Eldreth28-Jun-04 3:45 
GeneralRe: How to delete Temp Files and IE history? Pin
Lucktas28-Jun-04 7:19
Lucktas28-Jun-04 7:19 
I am using win XP
I already knwo that the path is:(for me)
C:\Documents and Settings\Owner\Local Settings\

The problem is that i do not know how to delete the files, from the directory as the directory is readonly, and ihave been experimenting with system io, to do the function here is the code i am experimenting with at the moment:
<br />
Imports System.IO <br />
<br />
Public Class Form1 <br />
    Inherits System.Windows.Forms.Form <br />
<br />
Dim files() as String = Directory.GetFiles("Your Path\") <br />
<br />
Dim fl as String <br />
<br />
For each fl in Files <br />
    File.Delete(fl) <br />
Next<br />

But i am looking for a way to do it with an api call, i am not sure whether this is possible and if so how to do it.

Thnaks
GeneralRe: How to delete Temp Files and IE history? Pin
Dave Kreskowiak28-Jun-04 9:48
mveDave Kreskowiak28-Jun-04 9:48 
GeneralRe: How to delete Temp Files and IE history? Pin
Dave Kreskowiak28-Jun-04 15:37
mveDave Kreskowiak28-Jun-04 15:37 
GeneralRe: How to delete Temp Files and IE history? Pin
Aaron Eldreth29-Jun-04 2:25
Aaron Eldreth29-Jun-04 2:25 
GeneralRe: How to delete Temp Files and IE history? Pin
Lucktas29-Jun-04 6:17
Lucktas29-Jun-04 6:17 
Generalopening MS Excel spreadsheet Pin
lxhan26-Jun-04 19:55
lxhan26-Jun-04 19:55 
GeneralRe: opening MS Excel spreadsheet Pin
tanstaafl2827-Jun-04 19:11
tanstaafl2827-Jun-04 19:11 
GeneralRe: opening MS Excel spreadsheet Pin
Anonymous6-Jul-04 9:57
Anonymous6-Jul-04 9:57 
QuestionHow can I rename an NT user using the ADSI? Pin
zzzhouzhou26-Jun-04 5:39
zzzhouzhou26-Jun-04 5:39 
AnswerRe: How can I rename an NT user using the ADSI? Pin
Dave Kreskowiak28-Jun-04 2:46
mveDave Kreskowiak28-Jun-04 2:46 
GeneralRe: How can I rename an NT user using the ADSI? Pin
zzzhouzhou26-Jul-04 17:01
zzzhouzhou26-Jul-04 17:01 
GeneralSystem.Configuration Namespace Pin
beowulfagate25-Jun-04 22:13
beowulfagate25-Jun-04 22:13 
GeneralRe: System.Configuration Namespace Pin
tanstaafl2826-Jun-04 4:23
tanstaafl2826-Jun-04 4:23 
GeneralRe: System.Configuration Namespace Pin
beowulfagate26-Jun-04 17:58
beowulfagate26-Jun-04 17:58 
GeneralRe: System.Configuration Namespace Pin
Dave Kreskowiak26-Jun-04 18:04
mveDave Kreskowiak26-Jun-04 18:04 
GeneralRe: System.Configuration Namespace Pin
beowulfagate27-Jun-04 13:35
beowulfagate27-Jun-04 13:35 
GeneralRe: System.Configuration Namespace Pin
beowulfagate27-Jun-04 14:41
beowulfagate27-Jun-04 14:41 
GeneralRe: System.Configuration Namespace Pin
Dave Kreskowiak27-Jun-04 18:15
mveDave Kreskowiak27-Jun-04 18:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.