Reputation: 29
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
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