Solved

Coldfusion CFDirectory mapped and local drive

Posted on 2014-12-08
1
193 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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