General information
Category:
Coding, syntax & commands
Peter,
You can use the FileSystemObject to check its existence if it is hidden or a system folder.
loFSO = CREATEOBJECT( "Scripting.FileSystemObject")
?loFSO.FOLDEREXISTS( "c:\myfolder")
>If has directory flag Hidden or System or user doesn't right on the directory.
>
> MartinJ
>
>
>>VFP7 - Windows 2000 Small busyness Server
>>
>>Email_Dir = "T:\SAM_MAIN\SCIL\"
>>.
>>.
>>.
>>if not DIRECTORY(Email_Dir)
>> MKDIR(Email_Dir)
>>endif
>>
>>The MKDIR-line causes very scarcely the error:
>>Error: 1961
>>A subdirectory or file t:\sam_main\scil already exists.
>>
>>The subdirectory is actually there but why did DIRECTORY() not see it?
>>Is there a way to make it more secure?
>>
>>Thanks in advance
>>Peter
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only