02-21-2017, 08:10 AM
Macro Macro25
out
str file.expandpath("$desktop$\Data\Downloads\a.mp4")
str folder.expandpath("$desktop$\Data\Downloads\")
;fileexists 1
if(FileExists(file))
,out "found"
else
,out "notfound"
;fileexists 2
int fexists = FileExists(file 1)
;out fexists
if fexists= 1
,out "found"
else if fexists = 0
,out "notfound"
;folderexists 1
if(FileExists(folder 1))
,out "found"
else
,out "notfound"
;folderexists 2
int folderexists = FileExists(folder 1)
;out folderexists
if folderexists = 2
,out "folder found"
else
,out "notfound"
;file or folder exists
if(FileExists(folder 2));;or if(FileExists(file 2))
,out "found"
else
,out "notfound"