; AZJIO
; http://www.autoitscript.com/forum/topic/133224-filesearch-foldersearch/
#include <FileOperations.au3>
$sTmp = _FO_IsDir('C:\WINDOWS')
; $sTmp = _FO_IsDir('C:\Boot.ini')
; $sTmp = _FO_IsDir('Folder')
If Not (@error Or $sTmp) Then ; True if @error = 0 and $sTmp = 0
MsgBox(0, ';)', 'This is the file')
ElseIf $sTmp Then
MsgBox(0, ';)', 'This is the folder')
Else
MsgBox(0, ';)', 'Error')
EndIf