Path Information


Node Information
Gets Project's path information, where the application is located and other paths related to your application.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
ExecutablePath OUT String MULTIPLE FALSE FALSE
StartupPath OUT String MULTIPLE FALSE FALSE
DirectoryName OUT String MULTIPLE FALSE FALSE
CommonAppDataPath OUT String MULTIPLE FALSE FALSE
UserAppDataPath OUT String MULTIPLE FALSE FALSE
LocalUserAppDataPath OUT String MULTIPLE FALSE FALSE
Drive OUT String MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Application.Information
{
    [IsNode("Path")]
    public class AppPath : Node
    {
        Port expath = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "ExecutablePath");
        Port startuppath = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "StartupPath");
        Port dirname = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "DirectoryName");
        Port commonappdatapath = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "CommonAppDataPath");
        Port userappdatapath = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "UserAppDataPath");
        Port localuserappdatapath = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "LocalUserAppDataPath");
        Port driveletter = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "Drive");
        public AppPath()
        {
            Name = "Path Information";
            AddPort(expath);
            AddPort(startuppath);
            AddPort(dirname);
            AddPort(commonappdatapath);
            AddPort(userappdatapath);
            AddPort(localuserappdatapath);
            AddPort(driveletter);
            expath.Instructions = "Application.ExecutablePath";
            startuppath.Instructions = "Application.StartupPath";
            dirname.Instructions = "new FileInfo(Application.ExecutablePath).Directory.Name";
            commonappdatapath.Instructions = "Application.CommonAppDataPath";
            userappdatapath.Instructions = "Application.UserAppDataPath";
            localuserappdatapath.Instructions = "Application.LocalUserAppDataPath";
            driveletter.Instructions = "new DirectoryInfo(Application.StartupPath).Root.Name";
            Information = "Gets Project's path information, where the application is located and other paths related to your application.";
        }
    }
}