try
<cfif directoryExists(path/to/directory/)>
code
</cfif>
----- Original Message -----
From: "river" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 12:48 PM
Subject: Validate a string for a valid directory name?


> What's the best way to validate a string for a valid directory name?  I am
> trying to create a form that creates a folder with the name that's
specified
> in the form.  Entering a text "MyDocument" in a textbox and hitting
"Submit"
> creates a folder with the name MyDocument.
>
> I need to check this string for the valid folder/directory name under
> Windows NT.  What would be the best way of doing it?  Is there a custom
tag?
>
> Thank you for any help.
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to