|
Deadline Scripting Reference
10.3.2.1
|
Path utility functions. More...
Static Public Member Functions | |
| static string | ChangeFilename (string path, string filename) |
| Changes the file name in the path. More... | |
| static string | EnsureTrailingPathSeparator (string path) |
| Ensures the given path ends with the appropriate path separator for the current operating system. More... | |
| static string | GetApplicationPath (string applicationName) |
| Searches the PATH environment variable to see if the specified application exists in any of the paths. More... | |
| static string | GetFullNetworkPath (string filePath) |
| Returns the full Network Path of the given file by expanding mapped Network Drives to their full network Path, if applicable. More... | |
| static string | GetLocalApplicationDataPath () |
| Gets the local appliation data path for the current non-roaming user. More... | |
| static string | GetMappedDriveNetworkPath (string driveName) |
| Gets the network path for the given drive. More... | |
| static string | GetSystemTempPath () |
| Returns the path of the current system's temporary folder. More... | |
| static bool | IsDriveMapped (string driveName) |
| Checks if the given drive is mapped. More... | |
| static bool | IsPathLocal (string fileName) |
| Simply checks if the root of the path is the C, D, or E drive. More... | |
| static bool | IsPathLocal (string fileName, string root) |
| Check if the root of the given file matches the given root. More... | |
| static bool | IsPathLocal (string fileName, string[] roots) |
| Check if the root of the given file matches any of the roots in the given array. More... | |
| static bool | IsPathRooted (string path) |
| Checks if the given path is rooted or relative. More... | |
| static bool | IsPathUNC (string path) |
| Checks if the given path is a UNC path. More... | |
| static bool | MapNetworkPath (string driveName, string remotePath, string username, string password, bool force) |
| Maps a network path. More... | |
| static bool | RegisterFont (string fontFileName) |
| Registers the given font (Windows only). More... | |
| static bool | RegisterFont (string fontFileName, int timeoutMilliseconds) |
| Registers the given font (Windows only). More... | |
| static bool | RegisterFonts (string[] fontFileNames) |
| Registers the given fonts (Windows only). More... | |
| static bool | RegisterFonts (string[] fontFileNames, int timeoutMilliseconds) |
| Registers the given fonts (Windows only). More... | |
| static string | ToPlatformIndependentPath (string path) |
| Replaces all path separators in the given path with the separators for the current operating system. More... | |
| static string | ToShortPathName (string path) |
| Converts the given path to it's equivalent short path (Windows only). More... | |
| static bool | UnmapNetworkPath (string driveName, bool force) |
| Unmaps a network drive. More... | |
| static bool | UnregisterFont (string fontFileName) |
| Unregisters the given font (Windows only). More... | |
| static bool | UnregisterFont (string fontFileName, int timeoutMilliseconds) |
| Unregisters the given font (Windows only). More... | |
| static bool | UnregisterFonts (string[] fontFileNames) |
| Unregisters the given fonts (Windows only). More... | |
| static bool | UnregisterFonts (string[] fontFileNames, int timeoutMilliseconds) |
| Unregisters the given fonts (Windows only). More... | |
Path utility functions.
|
static |
Changes the file name in the path.
| path | The original path, filename included. |
| filename | The new file name. |
|
static |
Ensures the given path ends with the appropriate path separator for the current operating system.
| path | The path. |
|
static |
Searches the PATH environment variable to see if the specified application exists in any of the paths.
| applicationName | The application name. |
|
static |
Returns the full Network Path of the given file by expanding mapped Network Drives to their full network Path, if applicable.
| filePath | The File Path containing a Mapped Drive. |
|
static |
Gets the local appliation data path for the current non-roaming user.
|
static |
Gets the network path for the given drive.
| driveName | The drive. |
|
static |
Returns the path of the current system's temporary folder.
|
static |
Checks if the given drive is mapped.
| driveName | The drive. |
|
static |
Simply checks if the root of the path is the C, D, or E drive.
| fileName | The file name. |
|
static |
Check if the root of the given file matches the given root.
| fileName | The file name. |
| root | The root to check. |
|
static |
Check if the root of the given file matches any of the roots in the given array.
| fileName | The file name. |
| roots | The roots to check. |
|
static |
Checks if the given path is rooted or relative.
| path | The path. |
|
static |
Checks if the given path is a UNC path.
| path | The path. |
|
static |
Maps a network path.
| driveName | The drive. |
| remotePath | The remote path. |
| username | The username, can be null. |
| password | The password, can be null. |
| force | If an existing mapped path to the local path should be disconnected first. |
|
static |
Registers the given font (Windows only).
| fontFileName | The font file name. |
|
static |
Registers the given font (Windows only).
| fontFileName | The font file name. |
| timeoutMilliseconds | The number of milliseconds to wait per font when registering fonts. |
|
static |
Registers the given fonts (Windows only).
| fontFileNames | The font file names. |
|
static |
Registers the given fonts (Windows only).
| fontFileNames | The font file names. |
| timeoutMilliseconds | The number of milliseconds to wait per font when registering fonts. |
|
static |
Replaces all path separators in the given path with the separators for the current operating system.
| path | The path. |
|
static |
Converts the given path to it's equivalent short path (Windows only).
| path | The path. |
|
static |
Unmaps a network drive.
| driveName | The drive. |
| force | Specifies whether the disconnection should occur if there are open files or jobs on the connection. If this parameter is FALSE, the function fails if there are open files or jobs. |
|
static |
Unregisters the given font (Windows only).
| fontFileName | The font file name. |
|
static |
Unregisters the given font (Windows only).
| fontFileName | The font file name. |
| timeoutMilliseconds | The number of milliseconds to wait per font when registering fonts. |
|
static |
Unregisters the given fonts (Windows only).
| fontFileNames | The font file names. |
|
static |
Unregisters the given fonts (Windows only).
| fontFileNames | The font file names. |
| timeoutMilliseconds | The number of milliseconds to wait per font when registering fonts. |