Re: Open a Text File in Notepad using VB.Net 2005
- From: "james" <jjames700REMOVEME@xxxxxxxxxxxxx>
- Date: Wed, 15 Mar 2006 14:00:00 -0600
Forgot to mention in my previous post, the filename(s) won't make a
difference as long as the pdf file is in the BIN folder where the executing
assembly is located. I tried it with spaces, short file names and long file
names and it works. Just won't work with reserved characters (which you
know).
james
"Chas Large" <ChasLarge@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4E959A6D-60E5-468A-A24E-91877D3FD4B4@xxxxxxxxxxxxxxxx
And then I saw what I wrote. Of course it will work as it specifies the
path.
I checked the debug path and yes the file was not in the BIN folder as
specified. I put a copy there, ran it again and still got the error.
Would it be anything to do with DOS Filenames or Long filenames or spaces
in
the file name?
--
Cheers
Chas
***************
* Spectrum is Green *
***************
"Chas Large" wrote:
Hi Chris,
Thought that was it as I had only tested the debugger but then i rebuilt
the
app and installer, installed and tested and got the same error.
BTW the line:
System.Diagnostics.Process.Start("C:\Program Files\My
Programs\Program\read
me.pdf")
Works just fine in both the debug and install versions so the file must
be
in the right place.
--
Cheers
Chas
***************
* Spectrum is Green *
***************
"Chris Dunaway" wrote:
Are you testing this through the debugger? If so, the StartupPath may
not have the value you expect.
I recommend you step through the code and then inspect the value of the
..FileName property and make sure that your file exists in that
location.
.
- References:
- Open a Text File in Notepad using VB.Net 2005
- From: Chris Johnson
- Re: Open a Text File in Notepad using VB.Net 2005
- From: Terry Olsen
- Re: Open a Text File in Notepad using VB.Net 2005
- From: Peter Macej
- Re: Open a Text File in Notepad using VB.Net 2005
- From: Phill W.
- Re: Open a Text File in Notepad using VB.Net 2005
- From: Chas Large
- Re: Open a Text File in Notepad using VB.Net 2005
- From: Chris Dunaway
- Open a Text File in Notepad using VB.Net 2005
- Prev by Date: Re: Open a Text File in Notepad using VB.Net 2005
- Next by Date: Name 'ADODB' is not declared Error
- Previous by thread: Re: Open a Text File in Notepad using VB.Net 2005
- Next by thread: Re: Open a Text File in Notepad using VB.Net 2005
- Index(es):
Relevant Pages
|