[Csharp] static void Main (string [] args) {Console. writeLine ("this program removes the file prefix in the current directory and subdirectory"); Console. write ("Enter the prefix to remove:"); string stringFront = Console. readLine (); if (stringFront! = "") {String dir = AppDomain. CurrentDomain. BaseDirectory; RenameFile (dir, stringFront);} else Console. WriteLine ("Enter the prefix to remove! "); Console. writeLine ("Operation completed"); Console. readKey ();} public static void RenameFile (string ParentDir, string stringFront) {string [] files = Directory. getFiles (ParentDir ,"*. cs ", SearchOption. topDirectoryOnly); foreach (string file in files) {string filename = Path. getFileName (file); string pathname = Path. getDirectoryName (file); if (filename. startsWith (stringFront, true, null) {filename = filename. substring (stringFront. length); FileInfo fi = new FileInfo (file); fi. moveTo (Path. combine (pathname, filename);} string [] dirs = Directory. getDirectories (ParentDir); foreach (string dir in dirs) {RenameFile (dir, stringFront );}}