- 170 名前:169 mailto:sage [2008/01/15(火) 19:04:04 ]
- static void Main(string[] args)
{ 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(); } }
|

|