cameron
cameron

Reputation: 29

is illegal in an expression for a directoryin autohotkey

So im confused why this is a illegal expression its saying Z:\ is it

#SingleInstance,Force

If Exist Z:\
    Goto BackupStart
else 
Return 

BackupStart:
Msgbox,,Test,Test

Upvotes: 0

Views: 62

Answers (1)

Relax
Relax

Reputation: 10568

You can use either If[Not]Exist (deprecated)

IfExist Z:\

or the FileExist function

If FileExist("Z:\")

to check for the existence of a file, folder or drive.

Upvotes: 2

Related Questions