using System; using Cosmos.Compiler.Builder; namespace CosmosBoot1 { class Program { #region Cosmos Builder logic // Most users wont touch this. This will call the Cosmos Build tool [STAThread] static void Main(string[] args) { BuildUI.Run(); } #endregion // Main entry point of the kernel public static void Init() { var xBoot = new Cosmos.Sys.Boot(); xBoot.Execute(); Console.WriteLine("Welcome! You just booted CharlieOS ! Type a command to contenue "); Console.ReadLine(); if (Console.ReadLine() == ("help")) { Console.Write("Commands: 'help': displays help 'dir': makes a directory."); Console.ReadLine(); } else if (Console.ReadLine() == "dir") { System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@"C:\"); foreach (System.IO.FileInfo file in dir.GetFiles("*.*")) { Console.WriteLine("{0}, {1}", file.Name, file.Length); } Console.ReadLine(); } while (true) ; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)