ふらっとC#,C♯,C#(初心者用) Part23
■ このスレッドは過去ログ倉庫に格納されています
0170169
2008/01/15(火) 19:04:04{
string[] str; //検証用変数
string Input, Output; //フォルダパス
Console.WriteLine("入力フォルダパスを入力して下さい");
//入力文字列補正
str = Console.ReadLine().Split(new char[] {'\"'});
if (str.Length == 3) { Input = str[1]; }
else { Input = str[0]; }
Console.WriteLine("出力フォルダパスを入力して下さい");
//入力文字列補正
str = Console.ReadLine().Split(new char[] { '\"' });
if (str.Length == 3) { Output = str[1]; }
else { Output = str[0]; }
if (Directory.Exists(Input) & Directory.Exists(Output))
{
Console.WriteLine("valid");
Console.ReadLine();
}
else
{
Console.WriteLine("invalid");
Console.ReadLine();
}
}
■ このスレッドは過去ログ倉庫に格納されています