> I create several verity collections of documents that exist on other
> machines.  I would like to check if a machine is on the network
> before I try
> to update the collection.  What is the best way to do this?

<cfset MachineIsOn="No">
<cftry>
        <cfdirectory directory="\\Server\path">
        <cfset MachineIsOn="Yes">
        <cfcatch>
        </cfcatch>
</cftry>

That should do it

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


> -----Original Message-----
> From: Belfiori, Ross [mailto:[EMAIL PROTECTED]]
> Sent: 26 February 2001 15:52
> To: CF-Talk
> Subject: Finding another server....
>
>
>
> Ropo
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to