SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Addict lostatsea's Avatar
    Join Date
    Oct 2005
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Copy a WIN XP mapped drive directory/folder contents to CFMX7 root folder

    Hello everyone

    I have an issue:

    I am using Win XP, CFMX7 (developer), TOAD, DW8.

    I want to find a way for my .cfm page to copy a WIN XP mapped drive directory/folder contents to my root folder. Is this possible?

    I am told I would have to make CF a user account in order to read the mapped drive. I have no idea what this means.

    Basically, I am looking for an automatic update after the mapped drive contents are copied to my root folder for the application to keep track of current contents that I will be inserting into Oracle via TOAD.

    I hope this is not confusing, but if it is, then it goes along with my mindset at this point.

    Any help would be appreciated folks. :-)

    Thanks.

    Lostatsea

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd first test to see if CF can read the mapped directory by itself. If it can, then it should be easy to copy the contents of a folder to another location. I'd suggest using Massimo Foti's IO Coldfusion Component:
    http://www.olimpo.ch/tmt/cfc/tmt_file_io

    It's got loads more functionality than the standard cffile tag.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  3. #3
    SitePoint Addict lostatsea's Avatar
    Join Date
    Oct 2005
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mapping

    Nope. That did not work.

    Mr. Forta told me to go to the Services Panel and in properties set up CF as a user account, but that did not make a difference either.

    Do you think there is a setting in CF I can configure to read a WIN file from a WIN XP directory?

  4. #4
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, hang on...

    Do you want a website to be able to read from your personal computer? I think you're going to have to use some sort of Active X stuff. Websites as a rule aren't able to access a user's computer. Think of the security risks.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  5. #5
    SitePoint Guru
    Join Date
    Jul 2005
    Posts
    609
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are the systems on the same network?

  6. #6
    SitePoint Addict lostatsea's Avatar
    Join Date
    Oct 2005
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mapped Drives and CF

    Hi all

    I am using the developer version right now and will eventually move to production on another machine.

    The WIN XP folder is on Novell Network with my local dev server.

    I think we have decided to just use FTP to get this part to work.

    Thanks for your help and if you happen to have another solution as opposed to my FTP solution, please let me know.

    You guys are much appreciated.

    LAS

  7. #7
    SitePoint Addict lostatsea's Avatar
    Join Date
    Oct 2005
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mapped Drive and CF

    Forgot to mention:

    My local dev is on the same network as the WIN XP directory I am trying to get to, but the directory won't be on the same server as our production server.

    Quote Originally Posted by lostatsea
    Hi all

    I am using the developer version right now and will eventually move to production on another machine.

    The WIN XP folder is on Novell Network with my local dev server.

    I think we have decided to just use FTP to get this part to work.

    Thanks for your help and if you happen to have another solution as opposed to my FTP solution, please let me know.

    You guys are much appreciated.

    LAS

  8. #8
    SitePoint Addict cgriefer's Avatar
    Join Date
    Nov 2005
    Location
    San Ramon, CA
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you create a virtual directory in IIS (or whatever web server you're using) to point to the mapped directory?
    ------------------------------------------------------
    Charlie Griefer
    http://charlie.griefer.com

  9. #9
    SitePoint Addict lostatsea's Avatar
    Join Date
    Oct 2005
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mapped Drives

    I installed coldfusion as the built-in server and bypassed the IIS setup. That would have made my life a bit easier for this particular task.

    Thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •