Hello Rob, Thanks for reply. To be more precise, i am alredy able to open a file present at \\MC1CCS01\ISIT.GRP\DOCUMENTS\FastTrack_Schedule_9\FastTrack_Schedule_9.doc.pdf from my application itself.
Please note that it is relative path here. Now have look at following axact code in my application: <cfset tempPath=ExpandPath(#docLoc#)> <cfoutput>temp path= #tempPath#</cfoutput> <cfif FileExists(tempPath)> Yes <cfelse> No </cfif> Here temp path comes out to be- E:\ISG\webroots\iis\MC1CCS01\ISIT.GRP\DOCUMENTS\FastTrack_Schedule_9\FastTrack_Schedule_9.doc.pdf so this is what(i.e. exact path) i am passing in the function. But it is not able to tell if the file is present in this folder or not. see the error below: access denied (java.io.FilePermission E:\ISG\webroots\iis\MC1CCS01\ISIT.GRP\DOCUMENTS\FastTrack_Schedule_9\FastTrack_Schedule_9.doc.pdf read) null The error occurred on line -1. > 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275319 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

