andycharger Posted June 26, 2003 Posted June 26, 2003 im trying to launch a text file document from vb.net using the code below: However, when I press the button, I get the following message during debugging. An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.dll Additional information: The system cannot find the file specified However, the file is there. Anyone got any ideas? Quote
andycharger Posted June 26, 2003 Author Posted June 26, 2003 Sorry, code attached Private Sub Button1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseHover System.Diagnostics.Process.Start("C:\odbcconf.txt") End Sub This is the VB code im using! Quote
nibsy Posted June 26, 2003 Posted June 26, 2003 I just tried your code and it worked fine. Is the spelling of the text file in your code exactly the same as the saved text file? Quote
Administrators PlausiblyDamp Posted June 26, 2003 Administrators Posted June 26, 2003 I just copy and pasted the code into a new vb project, changed the path to "C:\boot.ini" - I knew that file was there and it worked fine. Only thing I can think of is that the file isn't there. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
*Experts* mutant Posted June 26, 2003 *Experts* Posted June 26, 2003 Enable viewing file extensions for common types in your Windows and look if the file is not named "odbcconf.txt.txt", i get this problem sometimes. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.