English 中文(简体)
重新命名C#的一组
原标题:renaming a setup in c#
  • 时间:2010-04-21 07:31:31
  •  标签:
  • c#-2.0

i have a setpu in c:3cinstalluildsoutput dir having name setup. i want to rename this setup from a c# file. please tell me how to rename this . when i am tyring File.Move(c:3cinstalluildsoutputsetup,c:3cinstalluildsRenamesetup ewsetup);

它是没有发现例外的。

无法找到档案 c:3个百分点。

请告诉我,这是错的。

感谢

问题回答
File.Move("c:\3c\install\builds\output\setup", "c:\3c\install\builds\Renamesetup\newsetup");

由此推断,“编造”档案没有“......”的延伸。 而且,新档案不会有“......延伸”。

“重新命名”必须事先存在,否则,你必须在你的法典中使用加以确立。 Directory.CreateDirectory

请注意,如上所述,你必须用“/”一词“引出”。 只有当“编造”成为档案时,才会奏效。

这条道路使得它像现在这样看待,是一部名录。 如果是,

System.IO.Directory.Move




相关问题
JavaScript, asp.net and Sql Server

I know how to use client side JavaScript with asp.net script. But I am unable to figure out how to retrieve data from database and show that data with JavaScript in an asp.net page. Suppose I have ...

How to find function parameters

I need to log all the function parameters in a dozen functions. Is there a way to pro grammatically determine all the parameters and their values (or at least their .ToString() value)? Perhaps via ...

How to do unit testing in Visual Studio 2005?

Is there any support for unit testing in Visual Studio 2005? After googling for some time, I found out that we can do unit testing with Visual Studio Team System, but I do not have it. I cannot ...

Implementing SFTP in 2.0

I want to write SFTP clients and servers in .NET 2.0. Is that possible? Please give me some suggestions

热门标签