dreampolice
Technical User
I can list files from a directory using MX 7 on Windows Servers but was wondering if there is a way to make sure the connection is working to the Directory which is located on another Windows Server.
There has been occasions when the network was down and I could not connect to the directory and I would like to have a condition where I can advise users such as "Cant connect to....".
Please advise:
There has been occasions when the network was down and I could not connect to the directory and I would like to have a condition where I can advise users such as "Cant connect to....".
Please advise:
Code:
<cfset theDir = "C:\thePathToDirectoryOnAnotherWindowsServer">
<cfif ????I can connect to #theDir#>
<CFDIRECTORY action="LIST" directory="C:\thePathToMyDirectoryHere" name="myInfo">
<CFOUTPUT query="myInfo">
<!--- directory info here --->
</CFOUTPUT>
<cfelse>
Cant connect to #theDir#
</cfif>