以下のステートメントが実行fileNameArrayEdited
されていません。"\\windows"
if
問題は他の場所にあると考えています。問題が見つかったら、機能するはずのコードが戻ってくるはずです...ありがとう!
if (fileNameArrayEdited.StartsWith("\\"))
{
specifiedDirCount = specifiedDirCount + 1;
}
// Put all file names in root directory into array.
string[] fileNameArray = Directory.GetFiles(@specifiedDir);
int specifiedDirCount = specifiedDir.Count();
string fileNameArrayEdited = specifiedDir.Remove(0, specifiedDirCount);
Console.WriteLine(specifiedDir.Remove(0, specifiedDirCount));
if (fileNameArrayEdited.StartsWith(@"\\"))
{
specifiedDirCount = specifiedDirCount + 1;
Console.ReadLine();