Print Page | Close Window

ASP.NET Copy File

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=13020
Printed Date: 29 March 2026 at 12:51am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: ASP.NET Copy File
Posted By: vshriniwasan
Subject: ASP.NET Copy File
Date Posted: 17 December 2004 at 10:09am

Have an Interesting Question...Dead

I have a folder and have some XML files stored in it.
 
When I try to load the XML, I get 401 authorization denied error. I am the admin, the security in the folder cannot be changed becase it is a dynamic on the fly folder. What can be done is by typing the link I can save the file to the c-drive in the server.
 
Being that is the only option I got, I would like to save the file into a specific location and access the file, which I am able to do. I aready have a have location in the server where I generate reports daily. I can bering this in there. So any one has any options.
 
By the way I tried ADODB.Stream thinking I could copy to clients machine. By default it is disabled and I it dangerous to turn it on.
 
Please any advise will be appreciated...
 
Thanks a lot,
 
Shrini



Replies:
Posted By: Mart
Date Posted: 17 December 2004 at 12:31pm
By default sub folders inherit security permissions of their parent folder, so if you set the parent folder security settings when a folder is made on the fly it will have those settings


Posted By: vshriniwasan
Date Posted: 17 December 2004 at 1:42pm
I have no control over Security. My only option is copying the file to the local drive on the server. If I can accomplish that, everything is great.
 
Currently If I past the direct link to the file I am able to get a save as prompt. Is there a way to use that link to save the file to temp location. Is this possible?
 
Shrini


Posted By: Diep-Vriezer
Date Posted: 17 December 2004 at 2:02pm

It sure is, but why on earth would you do that? If you have to copy and paste the file (which obviously can be accessed) at every request, well, that's not a really neat way of doing things.

 
First of all, what do you mean with an 'On The Fly' directory? If the folder is on another server, try the WebClient if you really want to copy...


-------------
Gone..


Posted By: vshriniwasan
Date Posted: 17 December 2004 at 2:20pm
It is a office DMS and when the custom ISAPI extension looks up that path, it creates those folders on the fly and gets the file.
 
I am thinking is if the file exits in the location, I would just read the file and give a recreate generate file option.
 
Shrini



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net