예제 #1
0
        public static void Execute(string scriptname)
        {
            if (scriptname.EndsWith(".cscript"))
            {
                foreach (string line in File.ReadLines(@"C:/Users/azama/Desktop/" + scriptname))
                {
                    Cocoashell.SendCMD(line);
                }
            }
            else
            {
                Console.WriteLine("Not a valid Cocoascript file.");
            }

            Cocoashell.isscript = false;
        }
예제 #2
0
        public static void Execute(string scriptname)
        {
            if (scriptname.EndsWith(".ccs"))
            {
                string[] lines = File.ReadAllLines(Terminal.current_directory + scriptname);
                foreach (string line in lines)
                {
                    Cocoashell.SendCMD(line);
                }
            }
            else
            {
                Console.WriteLine("Not a valid Cocoascript file.");
            }

            Cocoashell.isscript = false;
        }