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.
:
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
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.
:
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
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.