Programming Course in C# ¡Free!

12.14 - Surf directory (2)

 Saturday, April 06, 2013 published by Exercises C#

Complete the program to display the files in the current directory, and to allow the user to move up and down in that list. If the user presses Enter on a directory name, he will enter that directory; if he presses Enter on a file, that file will be launched.


  • Display all the files = 2
  • Distinguish files and directories = 4
  • Highlight the current file/dir and move selection up/down = 6
  • Run the program in the current position = 8
  • Enter the directory in the current position = 10
  • Go up to the previous directory = 11