Application setting at design time.

  • Thread starter Thread starter Abert
  • Start date Start date
A

Abert

Hi all.

Is there an easy way to clear, cancel or delete the Settings file for an
application during design time and testing? I know I have ready somewhere
you can find the file, but it's not easy to do.

Any help would be greatfully received.

Cheers.
 
try this

try this in the program that you want to delete setting for
Dim seting As String =
My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData
For Each foundFile As String In
My.Computer.FileSystem.GetFiles(seting)

Try

IO.File.Delete(foundFile)
IO.Directory.Delete(foundFile)
IO.File.Delete(foundFile)
Catch
End Try

Next
 
Back
Top