예제 #1
0
        internal static void OpenFileFolder(Form1 form)
        {
            String           fileName         = ProgramUtil.GetFilenameTabPage(form.pagesTabControl.SelectedTabPage);
            ProcessStartInfo processStartInfo = new ProcessStartInfo("explorer.exe")
            {
                Arguments = String.Format("/select, {0}", fileName)
            };

            OtherManager.StartProcessInfo(form, processStartInfo);
        }
예제 #2
0
        internal static void OpenDtHelp()
        {
            String language = LanguageUtil.GetReallyShortCulture();

            String guideFileName = String.Format("{0}{1}{2}", ConstantUtil.defaultDtPadGuideName, language, ConstantUtil.defaultDtPadGuideExtension);

            guideFileName = String.Format("\"{0}\"", Path.Combine(ConstantUtil.ApplicationExecutionPath(), guideFileName));

            ProcessStartInfo processStartInfo = new ProcessStartInfo(Path.Combine(ConstantUtil.ApplicationExecutionPath(), ConstantUtil.dtHelpExecutable), guideFileName)
            {
                WorkingDirectory = ConstantUtil.ApplicationExecutionPath(),
                UseShellExecute  = false
            };

            OtherManager.StartProcessInfo(null, processStartInfo);
        }
예제 #3
0
        internal static void OpenFileFolderPrompt(Form1 form)
        {
            String fileName     = ProgramUtil.GetFilenameTabPage(form.pagesTabControl.SelectedTabPage);
            String workingDrive = Path.GetPathRoot(Path.GetDirectoryName(fileName));

            if (String.IsNullOrEmpty(workingDrive))
            {
                workingDrive = @"C:\";
            }

            ProcessStartInfo processStartInfo = new ProcessStartInfo("cmd.exe")
            {
                WorkingDirectory = workingDrive,
                Arguments        = String.Format("/k \"cd {0}", Path.GetDirectoryName(fileName))
            };

            OtherManager.StartProcessInfo(form, processStartInfo);
        }