RE: Accessing Network Drives

2006-01-11 Thread Dan G. Switzer, II
Chad,

Here is my setup, I have Server 1 that has an external hard drive with
images on them, I have a network drive on Server 2 that is mapped to Server
1 external hard drive as drive F:\.

1) Is it possible to run CFFILE Exists on that F:\ drive on Server 2? If
so what would the CFFILE Exists code line look like?

2) Is it possible to do a CFFTP action=GetFile and use the F:\ drive as
the localfile field?


I can't get these to work.

You should be able to do this. My guess is ColdFusion does not have the
proper permissions to access your shared folder. By default, ColdFusion runs
under the LocalSystem account. 

I'd recommend setting up a user account specifically for ColdFusion and run
the services under that account. This will allow you to granularly control
what CF has permissions to.

-Dan



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229163
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Accessing Network Drives

2006-01-11 Thread Justin D. Scott
 1) Is it possible to run CFFILE Exists on that F:\ drive
 on Server 2? If so what would the CFFILE Exists code
 line look like?

Use CFFILE, but don't use a drive mapping, use the UNC path to the server
share directly.  Depending on the permissions of the share, you may need to
run the ColdFusion Application service as a user with permissions to access
the share.

This would look like...

cfset theFile = \\server\share\file.txt
cfif fileExists(theFile)
/cfif


-Justin


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229165
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Accessing Network Drives

2006-01-11 Thread Scott Mulholland
I would second this setup, we have used it in a few applications with great
success.

-Original Message-
From: Justin D. Scott [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 9:48 AM
To: CF-Talk
Subject: RE: Accessing Network Drives

 1) Is it possible to run CFFILE Exists on that F:\ drive
 on Server 2? If so what would the CFFILE Exists code
 line look like?

Use CFFILE, but don't use a drive mapping, use the UNC path to the server
share directly.  Depending on the permissions of the share, you may need to
run the ColdFusion Application service as a user with permissions to access
the share.

This would look like...

cfset theFile = \\server\share\file.txt
cfif fileExists(theFile)
/cfif


-Justin




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229175
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Accessing Network Drives

2006-01-11 Thread Richard Colman
I have used network drive mapping with no problems, going from a WINDOWS
host running CF to a LINUX cluster through a samba server. So, even this is
possible, but, I am interested the the pros and cons of a UNC path vs.
network drive mapping. Would it work in between different OS?

Here is another wrinkle. Would sure love to be able to use CFFILE from a
SHARED commercial host (i.e. CrystalTech) to my Linux cluster. Could never
figure out how to do it. 

Rick Colman 

-Original Message-
From: Scott Mulholland [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 7:39 AM
To: CF-Talk
Subject: RE: Accessing Network Drives

I would second this setup, we have used it in a few applications with great
success.

-Original Message-
From: Justin D. Scott [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 9:48 AM
To: CF-Talk
Subject: RE: Accessing Network Drives

 1) Is it possible to run CFFILE Exists on that F:\ drive on Server 
 2? If so what would the CFFILE Exists code line look like?

Use CFFILE, but don't use a drive mapping, use the UNC path to the server
share directly.  Depending on the permissions of the share, you may need to
run the ColdFusion Application service as a user with permissions to access
the share.

This would look like...

cfset theFile = \\server\share\file.txt cfif fileExists(theFile)
/cfif


-Justin






~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229177
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Accessing Network Drives

2006-01-11 Thread Dave Watts
 I have used network drive mapping with no problems, going 
 from a WINDOWS host running CF to a LINUX cluster through a 
 samba server. So, even this is possible, but, I am interested 
 the the pros and cons of a UNC path vs. network drive mapping. 
 Would it work in between different OS?

There really isn't any significant difference. Drive mappings are primarily
for the convenience of the end-user. Since in this case the end-user is your
CF service, I doubt that it really cares one way or the other.

As for different OSs, UNC paths will only work for SMB/CIFS filesystems,
like Windows and Samba shares. Presumably, CF on other platforms could
access these shares if it can use an SMB/CIFS client.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229183
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54