M
Mike
Hi! On some Windows 7 machines I am getting the following error when I
execute this code to enumerate all named pipes on a PC:
string[] pipeNames = null;
try
{
pipeNames = System.IO.Directory.GetFiles(@"\\.\pipe\");
}
catch (Exception ex)
{
}
ERROR:
System.ArgumentException: Second path fragment must not be a drive or UNC
name.
Parameter name: path2
at System.IO.Path.InternalCombine(String path1, String path2)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String
userPathOriginal, String searchPattern, Boolean includeFiles, Boolean
includeDirs, SearchOption searchOption)
at System.IO.Directory.GetFiles(String path, String searchPattern,
SearchOption searchOption)
at System.IO.Directory.GetFiles(String path)
I can not put my finger on what would cause some Windows 7 PC's crash and
some work perfectly fine. It also works fine on Vista
Any ideas/suggestions/help is greatly appreciated.
execute this code to enumerate all named pipes on a PC:
string[] pipeNames = null;
try
{
pipeNames = System.IO.Directory.GetFiles(@"\\.\pipe\");
}
catch (Exception ex)
{
}
ERROR:
System.ArgumentException: Second path fragment must not be a drive or UNC
name.
Parameter name: path2
at System.IO.Path.InternalCombine(String path1, String path2)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String
userPathOriginal, String searchPattern, Boolean includeFiles, Boolean
includeDirs, SearchOption searchOption)
at System.IO.Directory.GetFiles(String path, String searchPattern,
SearchOption searchOption)
at System.IO.Directory.GetFiles(String path)
I can not put my finger on what would cause some Windows 7 PC's crash and
some work perfectly fine. It also works fine on Vista
Any ideas/suggestions/help is greatly appreciated.