using System;
namespace Program
{
class FileManager
{
static void Main()
{
//variables
string Desktop =
[Link]([Link]);
string createFolder = [Link](Desktop, "Hi");
//run code
[Link]("Please select the following options:\n1. Create a
temporary folder\n2. Revert");
ConsoleKeyInfo selectedOption;
while (true)
{
selectedOption = [Link](true);
switch ([Link])
{
case ConsoleKey.D1:
case ConsoleKey.NumPad1:
[Link](createFolder);
[Link]("Folder Created at " + Desktop);
break;
case ConsoleKey.D2:
case ConsoleKey.NumPad2:
if ([Link](createFolder))
{
[Link](createFolder);
[Link]("Folder Deleted");
}
else
{
[Link]("No folder created by this program
was detected");
}
break;
default:
[Link]("No option selected.");
continue;
}
break;
}
[Link]("\nPress Any Key to Close this Window . . .");
[Link](true);
}
}
}