Exemple #1
0
        /// <summary>
        /// Runs the autoexec.lsf file if it exists.
        /// </summary>
        public void RunAutoexec()
        {
            const string autoExecFileName = "autoexec.lsf";

            if (FileSystem != null)
            {
                if (FileSystem.FileExists(autoExecFileName))
                {
                    Shell.ExecuteLsf(autoExecFileName);
                }
                else
                {
                    FileSystem.CreateFile(autoExecFileName);
                }
            }
        }