init
This commit is contained in:
25
Common/DTS.Common/Classes/WindowsFolder/WindowsFolder.cs
Normal file
25
Common/DTS.Common/Classes/WindowsFolder/WindowsFolder.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user