Re: Open a Text File in Notepad using VB.Net 2005



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.




.



Relevant Pages

  • Design Question
    ... my installer will install like .this.. ... , and bin (dlls) ... also having in the sibiling it is not ... since IISasp.net looks bin folder under the main it is not ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Deploy .aspx, browse, get 404 error
    ... This is why I think there is something underneath ... missing. ... I have verified that my bin folder is populated ... Thanks for the reply, however, the VS MSI installer ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Design Question
    ... You ASP.NET application looks in the bin folder for it's items. ... Webconfig and global.asa are in the root folder. ... You're design site layout does not look like it is compatible. ... > my installer will install like .this.. ...
    (microsoft.public.dotnet.framework.aspnet)
  • HELP!!! Cant patch admin install of Office 2003 Pro Enterprise Edition
    ... command line installer patch routine to upgrade the administrative install ... filenames of the MSP and MSI files, but I get the same error message telling ... I am also frustrated by the fact that the Full File version of the SP1 ...
    (microsoft.public.office.setup)