更改文件夹名称 [英] changing folder name

查看:108
本文介绍了更改文件夹名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我进行了谷歌搜索,但可以找到我想要的东西。我正在创建一个

临时文件夹,并使用Web应用程序将文件放入其中。

临时文件夹名称需要由程序动态更改,留下

文件夹中的所有文件。只是想知道是否有人这样做了?

谢谢。

-

Paul G

软件工程师。

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.

推荐答案

Paul写道:
Paul wrote:

我做了谷歌搜索,但可以找到我的样子寻找。我正在创建一个

临时文件夹,并使用Web应用程序将文件放入其中。

临时文件夹名称需要由程序动态更改,留下

文件夹中的所有文件。只是想知道是否有人这样做了?

谢谢。
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.



您使用Directory.Move方法重命名目录。


-

G ??跑安德森

_____
http:// www。 guffa.com


System.IO.Directory类,方法Move()。您需要确保应用程序

流程具有足够的安全权限。


-

Eliyahu Goldin,
软件开发人员

Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http:/ /usableasp.net

" Paul" < Pa ** @ discussion.microsoft.com写信息

news:65 ************************** ******** @ microsof t.com ...
System.IO.Directory class, method Move(). You will need to make sure the app
process has sufficient security rights.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Paul" <Pa**@discussions.microsoft.comwrote in message
news:65**********************************@microsof t.com...

>我做了谷歌搜索,但可以找到我想要的东西。我正在创建一个

临时文件夹,并使用Web应用程序将文件放入其中。

临时文件夹名称需要由程序动态更改,

离开

文件夹中的所有文件。只是想知道是否有人这样做了?

谢谢。

-

Paul G

软件工程师。
>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.



在这里小心....

通过更改文件夹的名称,您将重新启动应用程序(如果它是应用程序文件夹中的
子文件夹)即使子文件夹没有单个

..aspx文件


乔治

" Paul" < Pa ** @ discussion.microsoft.com写信息

news:65 ************************** ******** @ microsof t.com ...
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" <Pa**@discussions.microsoft.comwrote in message
news:65**********************************@microsof t.com...

>我做了谷歌搜索,但可以找到我想要的东西。我正在创建一个

临时文件夹,并使用Web应用程序将文件放入其中。

临时文件夹名称需要由程序动态更改,

离开

文件夹中的所有文件。只是想知道是否有人这样做了?

谢谢。

-

Paul G

软件工程师。
>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.


这篇关于更改文件夹名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆