34 lines
751 B
C#
34 lines
751 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace NX_Installation
|
|
{
|
|
class GetPaths
|
|
{
|
|
private string FileName { set; get; }
|
|
|
|
public GetPaths(string filename)
|
|
{
|
|
FileName = filename;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the startup folder
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public string GetStartupFolder()
|
|
{
|
|
Logfile log = new Logfile(FileName);
|
|
|
|
log.Info("Determined startup folder: " + Application.StartupPath);
|
|
// Startuppfad auslesen
|
|
return Application.StartupPath;
|
|
}
|
|
}
|
|
}
|