Need to open excel file through ASP Page(which is outside of App folder)

Posted on 2009-04-16
Last Modified: 2013-12-24
Actually i need to open a excel  file from an asp page with an provided link(say Bank copy).
If the files comes in application folder then it is easy to open, we could mention the file name it will open. But i actually need to open excel file which is out of Application (app) folder. kindly suggest help me out to give an idea..
i.e. my app folder is C:\chembu\bank\bank.xls -> i could open this thru asp page...say if i have file at C:\chembu\bank.xls. how to open giving the link in asp page ???
in asp page:-

<a href="javascript:bank();">Bank Copy</a>

function bank() {','mywindow','scrollbars=yes,resizable=yes');}

this i will get a link on asp page i could open, say if it is outside of App folder as i mention.. how can i ????

Open in new window

Question by:chembukar
    LVL 29

    Expert Comment

    by:David H.H.Lee
    Hi chembukar,
    Ok, you can try create a mapped network drive to connect this folder. But, you have to grant enough permission in order to let your application connect to this folder to open the preferred file as needed.
    You can try this for further details:


    You can just put your configure your excel folder as part of FTP of HTTP folder separately. Then, your application is able to communicate to this folder to access the files easily.

    Hope it helps.

    Author Comment

    hey x com,

                      Thanks for your respone. but i can't map it .. it is on internet..............FTP ok.. but our constraint is not put the file in app folder, becoz is visible all over the internet.............
    LVL 29

    Accepted Solution

    Hi chembukar,
    >>..FTP ok.. but our constraint is not put the file in app folder, becoz is visible all over the internet.............
    - You can redirect user to centralized down page to handle all the download process here. This can avoid the exposure of physical directories to public via URL since you can control the download logic there before user start download the file.
    Check this PAQ for further solution:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
    Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
    The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
    The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

    759 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

    7 Experts available now in Live!

    Get 1:1 Help Now