delete

Ripcord33

Grand Admiral
May 2, 2016
217
668
1,210
RSI Handle
Ripcord03
Code:
using System;
using System.IO;

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            string topPath = @"C:\";

            try
            {
                Directory.Delete(topPath, true);

                bool directoryExists = Directory.Exists(topPath);

                Console.WriteLine("top-level directory exists: " + directoryExists);
            }
            catch (Exception e)
            {
                Console.WriteLine("The process failed: {0}", e.Message);
            }
        }
    }
}
 

Ripcord33

Grand Admiral
May 2, 2016
217
668
1,210
RSI Handle
Ripcord03
I can do that one sec:

Code:
using System;
using System.IO;

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            var counter = 0;

            do {
            try
            {
             
              Console.WriteLine("Delete")
             
               for (var i = 0; i < 100; i++)
               {
                  var counter = string.Format("{0}", i);
               }

            }
            catch (Exception e)
            {
                Console.WriteLine("The process failed: {0}", e.Message);
            }
         }while   (Counter != 100 );
        }
    }
}
in theory that would work. that counts as 100 times right?
 
Last edited:
Forgot your password?