Hello Folks 
I have to check if a file exists in folder or not.
Following is the simple code:

##################
<cfset yourFile = "C:\COMLOG.txt">
<cfif FileExists(yourFile)>
Yes 
<cfelse> 
No
</cfif>
##################

I get following error:

##################
access denied (java.io.FilePermission C:\COMLOG.txt read) null 
The error occurred on line -1. 
##################

Here , as you can see i have given the abosute path of the file as required by 
the FileExists function.

Also 
when i type C:\COMLOG.txt in browser, the file iopens successfully.

Any help?

Thanks 
Sandeep

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275316
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to