Solved

Coldfusion CFDirectory mapped and local drive

Posted on 2014-12-08
1
182 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
iPhone looses session info 5 17
query of query sort 6 89
Database set up 5 60
coldfusion, javascript onclick url update 4 27
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…
PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now