In the script directory, I have files "file", "file.txt" and folder "folder".
Code: Select all
FullPath_v1( filename )
{
loop files filename
{
return A_LoopFileName
}
}
FullPath_v2( filename )
{
loop files filename
{
return A_LoopFileFullPath
}
}
MsgBox FullPath_v1( "file" ) ;returns "file"
MsgBox FullPath_v2( "file" ) ;returns "D:\Downloads\file"
MsgBox FullPath_v1( "file.txt" ) ;returns "file.txt"
MsgBox FullPath_v2( "file.txt" ) ;returns "D:\Downloads\file.txt"
MsgBox FullPath_v1( "folder" ) ;returns ""
MsgBox FullPath_v2( "folder" ) ;returns ""