Re: extra \ charecter in file path
- From: "Christof Nordiek" <cn@xxxxxxxxx>
- Date: Mon, 14 May 2007 15:24:48 +0200
<prakashdehury@xxxxxxxxx> schrieb im Newsbeitrag
news:1179143237.875689.50900@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In my c# application
when i use this FileStream fs = File.Open("C:\\Temp\\497_01\\\
\Assumption.txt",FileMode.Open);
First one hint. For file path it's better to use verbatim strings:
.... @"C:\Temp\497_01\\Asumption.txt" ...
this is much easier to read.
1. it works fine, when i ran the exe locally. (e.i : c:\> c\temp
\Test.exe)
This puzzles me. I couldn't even construct such path.
What Filesystem you are using.
2. When i execute the exe from share path it throw an exception saying
file does not exists
(e.i :C:\> \\TTTYUOT\temp\Test.exe)
The extra slash seems to have an effect like a relative path.
Where is the file actually located ?
.
- Follow-Ups:
- Re: extra \ charecter in file path
- From: prakashdehury
- Re: extra \ charecter in file path
- References:
- extra \ charecter in file path
- From: prakashdehury
- extra \ charecter in file path
- Prev by Date: Re: Raise an alert when a Application Starts
- Next by Date: Re: Usercontrol does not refresh after recompile
- Previous by thread: Re: extra \ charecter in file path
- Next by thread: Re: extra \ charecter in file path
- Index(es):
Relevant Pages
|