AutoHotKey를 사용하는 사람들
오늘: 486
어제: 624
전체: 200,902
회원: 1,883
접속: 21 (회원 1)

IfExist / IfNotExist

원문보기
수정요청

Checks for the existence of a file or folder.

IfExist, FilePattern
IfNotExist, FilePattern
AttributeString := FileExist(FilePattern)

Parameters

FilePattern The path, filename, or file pattern to check. FilePattern is assumed to be in %A_WorkingDir% if an absolute path isn't specified.

관련 명령어

FileExist(), Blocks, Else, File-loops

예제

IfExist, D:\
    MsgBox, The drive exists.
IfExist, D:\Docs\*.txt
    MsgBox, At least one .txt file exists.
IfNotExist, C:\Temp\FlagFile.txt
    MsgBox, The target file does not exist.

 

Copyright Tleap. All rights reserved.