|
-
Jan 15th, 2009, 09:34 PM
#1
[2008] Accessing a directory that has a . in its name
For some annoying reason you can actually create directories with full stops in them... and Microsoft just so happened to of set the default path for one of the Exchange server log files to go into a folder named Server.log. Yes it is definitley a folder not a file, there are .log files within the folder too though.
So, I'm trying to parse some of these tab delimited log files but I cant actually get at them because whenever I try and access the Server.log directory my code just dies. I mean, it doesnt throw an exception, it just stops executing. The form is still responsive etc but the parsing routing doesnt do anything and if i step into the code i see that it gets to the line that tries to access the server.log directory and then it just jumps straight out of debug mode.
If i move one of the log files out of the Server.log directory then my code works fine so what can I do?
I tried using IO.Path.Combine but that doesnt work either (and for once I'm not saying "it doesnt work" and giving you no error details because im useless, its just because there are no error details!)
Any suggestions?
Chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|