<cffunction name="getOSPathDelimeter" returntype="string">
<cfset var r = "" />
<cfif SERVER.OS.name CONTAINS "windows">
<cfset r = "\" />
<cfelse>
<cfset r = "/" />
</cfif>
<cfreturn r />
</cffunction>
On 6/8/09, Zaphod Beeblebrox <[email protected]> wrote:
>
> I could have sworn that there was a cf function that would return the
> path delimiter for the underlying OS \ or /......but I can't figure
> out what it is?
>
> zB
>
>
> And then the ferry man said,
> "There is trouble ahead,
> so you must pay me now,
> Yes you must pay me now"
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:298137
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5