Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfdirectory listing for a mapped drive

Status
Not open for further replies.

psteja2000

Programmer
Feb 1, 2005
82
US
I am trying to list a directory taht is on a remote machine on our internal network. But I get 0 records. the note for cfdirectory on macromedia site says:

Note: If the cfdirectory tag does not appear to work, for example, if a list operation returns an empty result set, make sure that you have correct permissions to access the directory. For example, if you run ColdFusion as a service on Windows, it operates by default as System, and cannot access directories on a remote system or mapped drive; to resolve this issue, do not run ColdFusion using the local system account.

Apparently this is my exact problem. My question is, how do I run coldfusion other than as a windows service? Where do I look for different ways to run coldfusion?

Also, assuming I somehow get teh listing to work, how can I let the files be displayed in the browser? The directory is basically a pdf directory (but on a mapped drive), the user should be able to open the pdf by clicking on one in the list.

regards,
Teja
 
What Operating System does the remote server have where the pdf files are stored?


Keith


The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents.
 
Did you try giving the full path to the server (such as \\servername\filepath\file.pdf)?


Keith


The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents.
 
both my machine and the remote machine have windows XP.
And I am giving full path like
\\testserver\downloads\testpdfs

"downloads" folder on the remote machine is shared and that's where I have my testpdfs.

I don't know why cf doesn't even complain saying not enough permissions..

regards,
Teja
 
Ok,

it works now. This is what I did. I have cf running as a service, so

in services->cfmx app server->properties->logon->

now select this account button, then Browse,

now if you have access to the remote machine with your current windows login account, then just typein the account name in the text area provided, later provide the password and click apply, then restart the service.

If your windows login account has permissions to the remote server, now cf will have permissions too and cfdirectory will work fine.

Only other thing I need to figure out, how do I make them available via the web?

regards,
Teja
 
thanks for posting your answer.

to make them available to the web you'll have to allow external access to your intranet. you'll need another forum for that.

Beware of programmers who carry screwdrivers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top