26 lines
860 B
C#
26 lines
860 B
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.IO;
|
|
|
|
namespace DTS.Common.Classes.WindowsFolders
|
|
{
|
|
public class WindowsFolder
|
|
{
|
|
/// <summary>
|
|
/// Open the folder containing all of the manuals. The default path is C:\DTS\DTS.Suite\(version)\DataPRO\Manuals,
|
|
/// but this function assumes that the Manuals folder is in the CurrentDirectory, which is always the case
|
|
/// (even when DataPRO is installed in a non-default location).
|
|
/// </summary>
|
|
public static void OpenManualsFolder(string path)
|
|
{
|
|
var manualsPath = Path.Combine(path, Constants.ManualsFolder);
|
|
|
|
Process.Start(new ProcessStartInfo()
|
|
{
|
|
FileName = Constants.WindowsExplorer,
|
|
Arguments = manualsPath
|
|
});
|
|
}
|
|
}
|
|
}
|