Re: changing folder name
- From: Paul <Paul@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 10 Jul 2008 09:29:00 -0700
oops I ment app moved without a rebuild of the source code.
--
Paul G
Software engineer.
"Paul" wrote:
thanks for the additional information. I had thought of setting the.
parameter as you suggested, then I think the application could still be moved
with a rebuild. I also thought of a seperate windows application to run at
night that would clear the temp directories as long as it could figure out
which ones to clear.
--
Paul G
Software engineer.
"Eliyahu Goldin" wrote:
I see.
You can try creating a virtual directory in IIS under your application root,
map it to a physical folder outside the application root and store the
reports there. But I am afraid this may restart the application too.
You can also setup a parameter in the web.config that will tell you the
physical path to the report data storage.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Paul" <Paul@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:51FE8982-DCCB-45C9-B88E-6C42E49A6481@xxxxxxxxxxxxxxxx
thanks for the response. I am setting up a data storage area for reports
and
am allowing users to store files that are associated with a report. The
report just collects a bunch of information and the report number is
generated based on this information entered. I am just using a temp
folder
as am allowing uploading before the report is saved (as they are entering
the
data). When the report is saved the temp folder name (just using the user
ID) needs to be changed to the report number, so it is like
Temp/ReportNumber/all the files.
--
Paul G
Software engineer.
"Eliyahu Goldin" wrote:
Renaming directories from a web app doesn't look like an elegant
solution.
Perhaps you should explain in short what do you want to achieve.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Paul" <Paul@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AC7F60E8-221B-44A2-81DC-7AD2010BABB1@xxxxxxxxxxxxxxxx
Hi it looks like it is resetting the application as you stated,
target.MoveTo(Server.MapPath(newpath));//copy to new directory
I do not want to hardcode a path in since the application is moved to
different servers but wondering if there is a way to do this using
something
simular to Server.MapPath. Only think is it can not be in a subfolder
of
the
project (so it will not cause a reset!). Also wondering if a copy and
then
delete would cause a reset as well (if in a subfolder of the
project?)Thanks.
--
Paul G
Software engineer.
"George" wrote:
Be carefull here....
By changing folder's name you will restart an applicaition (if it's a
subfolder in application folder) even if the subfolder does not have
single
..aspx file
George
"Paul" <Paul@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:651536E6-7EBB-4807-BB4E-C39DBADB32B2@xxxxxxxxxxxxxxxx
I did a google search but could find what I was looking for. I am
creating
a
temporary folder and placing files in it with a web application.
The
temporary folder name needs to be changed dynamically by the
program,
leaving
all the files in the folder. Just wondering if anyone has done
this?
thanks.
--
Paul G
Software engineer.
- References:
- Re: changing folder name
- From: George
- Re: changing folder name
- From: Eliyahu Goldin
- Re: changing folder name
- From: Paul
- Re: changing folder name
- From: Eliyahu Goldin
- Re: changing folder name
- From: Paul
- Re: changing folder name
- Prev by Date: MailMessage not eaching hotmail?!
- Next by Date: AJAX ToolKit for .NET 1.1 / VS.2003
- Previous by thread: Re: changing folder name
- Next by thread: Specifying precompilation target directory on the command line
- Index(es):
Relevant Pages
|