N
NickP
Hi there,
I am implementing a simple "/U" command line argument for a .NET
application that instructs the application to delete the following
folders...
My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData
My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData
The application deletes these folders successfully then exits. Even
though the application does *not* use the Application Framework built into
..NET (due to incompatability with McAfee) the folders are promptly restored
and recovered once the application exits!
----------
Dim pDIoDirectory As New
DirectoryInfo(My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData.ToString())
If (pDIoDirectory.Exists) Then
Try
Call pDIoDirectory.Delete(True)
Catch ex As Exception
End Try
End If
pDIoDirectory = New
DirectoryInfo(My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData.ToString())
If (pDIoDirectory.Exists) Then
Try
Call pDIoDirectory.Delete(True)
Catch ex As Exception
End Try
End If
Return (0)
----------
How would I stop the application from restoring this file? Many thanks
in advance.
Nick.
I am implementing a simple "/U" command line argument for a .NET
application that instructs the application to delete the following
folders...
My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData
My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData
The application deletes these folders successfully then exits. Even
though the application does *not* use the Application Framework built into
..NET (due to incompatability with McAfee) the folders are promptly restored
and recovered once the application exits!
----------
Dim pDIoDirectory As New
DirectoryInfo(My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData.ToString())
If (pDIoDirectory.Exists) Then
Try
Call pDIoDirectory.Delete(True)
Catch ex As Exception
End Try
End If
pDIoDirectory = New
DirectoryInfo(My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData.ToString())
If (pDIoDirectory.Exists) Then
Try
Call pDIoDirectory.Delete(True)
Catch ex As Exception
End Try
End If
Return (0)
----------
How would I stop the application from restoring this file? Many thanks
in advance.
Nick.