Function Reference


_PathMake

Creates a path from drive, directory, file name and file extension parts

#include <File.au3>
_PathMake ( $sDrive, $sDir, $sFileName, $sExtension )

Parameters

$sDrive Drive (Can be UNC). If it's a drive letter, a : is automatically appended
$sDir Directory. A trailing and preceding slash are added if not found.
$sFileName The name of the file
$sExtension The file extension. A period is supplied if not found in the extension

Return Value

Returns the string containing the full path.

Remarks

The path will still be built with what is passed. This doesn't check the validity of the path created, it could contain characters which are invalid on your filesystem.
You may pass "" (an empty string) for any part of the path you do not need in the final output.

Related

_PathFull, _PathSplit

Example

#include <File.au3>
#include <MsgBoxConstants.au3>

; Create a path.
Local $sFilePath = _PathMake("C:", "\Temp", "Boot", "ini")
MsgBox($MB_SYSTEMMODAL, "", $sFilePath)