docs/functions/path.html
Combines an array of strings into a path.
Syntax
path.combine(path1, path2)
path.combine("C:", "Windows", "Explorer.exe")
Retrieves the current directory for the current process.
Syntax
path.currentdirectory
Return the directory name from the path.
Syntax
path.directory.name('c:\windows\system32') // returns: system32
Shows the directory selection box and returns the path of the specified directory.
Syntax
path.directory.box
Check if one or more path is empty.
Syntax
path.empty(path)
path.empty(path1, path2, ...)
Check if one or more path exists..
Syntax
path.exists(path)
path.exists(path1, path2, ...)
Returns the absolute path for the specified path string.
Syntax
path.full(path)
Retrieves the short path form of the specified path.
Syntax
path.short(path)
Return the name from the path.
Syntax
path.name(path)
Return the path of the parent
Syntax
path.location(path)
Return the name from the parent
Syntax
path.location.name(path)
Return the drive path
Syntax
path.root(path)
Return the title from the path
Syntax
path.title(path)
Return the type of path
Syntax
path.type(path) == type.file
Return the name of path
Syntax
path.file.name(path)
Return the name of path without extension
Syntax
path.file.title(path)
Return the extension of path
Syntax
path.file.ext(path)
Shows the file selection box and returns the path of the specified file.
Syntax
path.file.box
path.file.box('All|*.*|Text|*.txt')
path.file.box('exe|*.exe', 'c:\windows')
path.file.box('exe|*.exe', 'c:\windows', 'explorer.exe')
Returns all files with the ability to filter.
Syntax
path.files(sys.dir, ["*"], flags[2=files | 3=dirs | 5=files+dirs | 8=quots | 16=full path], sep)
// get all files and dirs
path.files(sys.dir)
path.files(sys.dir, "*")
// get all files with .exe
path.files(sys.dir,"*.exe")
// full path + quots
path.files(sys.dir, '*', 8|16)
Syntax
path.isabsolute(path)
Syntax
path.isrelative(path)
Syntax
path.isfile(path)
Syntax
path.isdirectory(path)
Syntax
path.isdrive(path)
Syntax
path.isclsid(path)
Syntax
path.isexe(path)
Remove the extension from the passed parameter.
Syntax
path.removeextension
Return a path from the shortcut
Syntax
path.lnk(path)
Return type from the shortcut
Syntax
path.lnk.type(path)
Return a dir path from the shortcut
Syntax
path.lnk.dir(path)
Return a icon path and index from the shortcut
Syntax
path.lnk.icon(path)
Retrieves the full path of a known folder identified.
Syntax
path.getknownfolder('{905e63b6-c1bf-494e-b29c-65b732d3d21a}')
Replacing the back slash with a forward slash or defining a spacer.
Syntax
path.separator('c:\windows\system32') return "c:/windows/system32"
path.separator('c:\windows\system32', '#') return "c:#windows#system32"
convert the path to wsl path