Hello,
I need help with checking to see if a directory exists. The problem is that the directory will change depending on the computer. Here is what I have
FileFindFirstFile($vartemp&"\_AI*.tmp")
However, it is still returning -1 even though there is a folder named _AIB361.tmp in the directory (%temp% on the machine which $vartemp is set to)
Thanks
David
mespork,
First, welcome to the Autoit forums.
You need to use the FileExists function to determine whether your folder exists. FileFindFirstFile needs a full path and filename (which can include wildcards) to return a search handle for further exploitation - hardly surprising that it returns -1 in this case!. >_<
Of course, FileFindFirstFile might well come in handy if you want to search the level above for all the folders which meet the mask you have set (_AI*.tmp[/i1]) and you