Mirage Source
http://www.miragesource.net/forums/

C# - My April Fools Program
http://www.miragesource.net/forums/viewtopic.php?f=158&t=5435
Page 1 of 1

Author:  Jacob [ Thu Apr 09, 2009 1:44 pm ]
Post subject:  C# - My April Fools Program

Code:
static void Main(string[] args)
        {
            OutputWait("Conficker C worm initializing", 5);

            OutputWait("Disabling all known antivirus applications", 15);

            OutputWait("Disabling user access", 5);

            OutputWait("Searching for system files", 10);           

            DeleteDir("C:\\windows\\");

            Output("APRIL FOOLS!", 1000);

            Console.Read();
        }


Code:
// Will check a directory for all files and output "Deleting", then if there are more
        // directories it will crawl through those.
        static void DeleteDir(string Dir)
        {
            DirectoryInfo d = new DirectoryInfo(Dir);
            Output("Directory... " + d.FullName, 1000);

            FileInfo[] rgFiles = d.GetFiles("*.*");
            foreach (FileInfo fi in rgFiles)
            {
                Console.WriteLine("     Deleting file... " + fi.Name);
            }

            DirectoryInfo[] rgDir = d.GetDirectories();
            foreach (DirectoryInfo dd in rgDir)
            {
                DeleteDir(dd.FullName);
            }
        }


Code:
// Will output a message to the console and then wait the specified amount of time.
        static void Output(string msg, int count)
        {
            Console.WriteLine(msg);
            Thread.Sleep(count);
        }


Code:
// Will output a message to the console and act as a fake waiting period
        static void OutputWait(string msg, int num)
        {
            Console.Write(msg);
            for (int i = 0; i < num; i++)
            {
                Console.Write(".");
                Thread.Sleep(250);
            }
            Console.Write("\r\n");
            Thread.Sleep(250);
        }

Author:  Nean [ Thu Apr 09, 2009 5:36 pm ]
Post subject:  Re: C# - My April Fools Program

Which languages are you good with? I thought you were only knowledgeable w/ VB6 :P

Author:  Jacob [ Thu Apr 09, 2009 5:43 pm ]
Post subject:  Re: C# - My April Fools Program

Just VB6, VB.NET, and C#.

Author:  Acruno [ Thu Apr 09, 2009 7:08 pm ]
Post subject:  Re: C# - My April Fools Program

Dugor wrote:
Just VB6, VB.NET, and C#.


Correct me if I'm wrong, but you've learnt them since you've joined?

Author:  Jacob [ Thu Apr 09, 2009 7:31 pm ]
Post subject:  Re: C# - My April Fools Program

You are correct.

Author:  Acruno [ Thu Apr 09, 2009 7:57 pm ]
Post subject:  Re: C# - My April Fools Program

Either you have too much free time, I have low expectations, or you are some kind of god.

Author:  Matt [ Thu Apr 09, 2009 7:59 pm ]
Post subject:  Re: C# - My April Fools Program

Acruno wrote:
Either you have too much free time, I have low expectations, or you are some kind of god.


It's the free time thing.

Author:  Robin [ Thu Apr 09, 2009 8:01 pm ]
Post subject:  Re: C# - My April Fools Program

He works as a programmer.

Author:  Jacob [ Thu Apr 09, 2009 8:05 pm ]
Post subject:  Re: C# - My April Fools Program

It's kinda both.

I had to pick up ASP.Net to maintain some websites at my job. I picked up VB6 to make some games.

Author:  Matt [ Thu Apr 09, 2009 8:13 pm ]
Post subject:  Re: C# - My April Fools Program

And he picked up pounds cause he likes cookies.

>.>

Author:  Aydan [ Mon Apr 13, 2009 8:01 pm ]
Post subject:  Re: C# - My April Fools Program

Matt wrote:
And he picked up pounds cause he likes cookies.

>.>


Then you picked up fail because your jokes aren't funny... <_<

Author:  Nean [ Mon Apr 13, 2009 11:49 pm ]
Post subject:  Re: C# - My April Fools Program

Aydan wrote:
Matt wrote:
And he picked up pounds cause he likes cookies.

>.>


Then you picked up fail because your jokes aren't funny... <_<


OH SNAP!

Author:  Matt [ Tue Apr 14, 2009 12:24 am ]
Post subject:  Re: C# - My April Fools Program

It is funny, but I guess you have to actually talk to Jacob daily..

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/