Solved

Coldfusion CFDirectory mapped and local drive

Posted on 2014-12-08
1
191 Views
Last Modified: 2015-01-09
A user can have several CSV files stored on his PC (C:\Users\username\Documents\payroll) or on a mapped drive
j:\documents\payroll. These CSV files are generated from an payroll application.

The name pattern of the CSV files is always PAYROLL_YYYYMMPP where YYYY is payroll year, MM is payroll month and PP is payroll period
e.g. PAYROLL_20140101.csv, PAYROLL_20140102.csv, PAYROLL_20140201.csv, PAYROLL_2014002.csv etc...


I need to read ALL the CSV file names and content from either the user's PC or mapped drive (J), depending on which selection the user made.

I tried many combinations of CFDIRECTORY but has been unsuccessfully so far.

Any help will be greatly appreciated.
0
Comment
Question by:Errol Farro
1 Comment
 
LVL 52

Accepted Solution

by:
_agx_ earned 500 total points
ID: 40486829
CFDirectory can't read files on a client computer. It only has access to files that reside on the CF server machine  -OR- files on a mapped drive that's accessible to the user account the CF service is running under.  In other words, from a mapped drive on the CF server machine.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Query help 4 83
Can I format excel columns with coldfusion 11? Using CFSPREADSHEET? 7 366
coldfusion cfloop help 6 36
Using cfstoredproc to return query data 2 45
The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question