Nick Snyder

Nick Snyder

  • NA
  • 1
  • 0

Deleting files in vb.net

Jul 18 2007 6:22 PM
I have a small program that's only purpose is to delete another executable in the startup menu. Dim user As String = SystemInformation.UserName Dim firstpart As String = "c:\documents and settings\" Dim third As String = "\Start Menu\Programs\startup\LP2007.exe" Dim full As String = firstpart & user & third System.IO.File.Delete(full) While this works fine on my computer that i'm developing on, when i go to test this on a different machine I get a fatal error saying that it can't find the specified file. Can anyone shed some light as to why this is happening? Thanks

Answers (1)