|
|
 | | From: | =?Utf-8?B?bHlx?= | | Subject: | =?Utf-8?B?5oCO5qC355SoQyPkv67mlLnmlofku7blkI3vvJ8=?= | | Date: | Fri, 14 Jan 2005 08:17:06 -0800 |
|
|
 | 鎬庢牱鐢–#淇敼鏂囦欢鍚嶏紵 File,FileInfo,Path,Directory,DirectoryInfo杩欎簺绫婚噷濂藉儚閮芥病鏈夋敼鏂囦欢鍚嶇殑鏂规硶銆傚ソ濂囨憖锛 鍝綅澶т緺鑳藉府鎴戝憖锛熻阿璋簡锛侊紒
|
|
 | | From: | 001 | | Subject: | Re: 怎样用C#修改文件名? | | Date: | Sat, 15 Jan 2005 15:23:13 +0800 |
|
|
 | 老兄:我也在想这个问题.改用vb.net吧,里面有rename命令
"lyq" 写入消息 news:931CAE57-E0A5-4B70-BB89-5FA57BF9E7A4@microsoft.com... > 怎样用C#修改文件名? > File,FileInfo,Path,Directory,DirectoryInfo这些类里好像都没有改文件名的方 法。好奇怪呀! > 哪位大侠能帮我呀?谢谢了!!
|
|
 | | From: | Vince Yuan | | Subject: | =?Utf-8?B?UmU6IOaAjuagt+eUqEMj5L+u5pS55paH5Lu25ZCN77yf?= | | Date: | Mon, 17 Jan 2005 08:24:39 +0800 |
|
|
 | This is a multi-part message in MIME format.
------=_NextPart_000_0038_01C4FC6D.FCD3CBB0 Content-Type: text/plain; charset="Utf-8" Content-Transfer-Encoding: quoted-printable
Moves a specified file to a new location, providing the option to = specify a new file name.
[Visual Basic] Public Sub MoveTo( _ ByVal destFileName As String _ ) [C#] public void MoveTo( string destFileName ); [C++] public: void MoveTo( String* destFileName ); [JScript] public function MoveTo( destFileName : String ); Parameters destFileName=20 The path to move the file to, which can specify a different file name. =
--=20 Vince
"lyq" wrote in message = news:931CAE57-E0A5-4B70-BB89-5FA57BF9E7A4@microsoft.com... > = =E6=80=8E=E6=A0=B7=E7=94=A8C#=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E5=90=8D= =EF=BC=9F > = File,FileInfo,Path,Directory,DirectoryInfo=E8=BF=99=E4=BA=9B=E7=B1=BB=E9=87= =8C=E5=A5=BD=E5=83=8F=E9=83=BD=E6=B2=A1=E6=9C=89=E6=94=B9=E6=96=87=E4=BB=B6= =E5=90=8D=E7=9A=84=E6=96=B9=E6=B3=95=E3=80=82=E5=A5=BD=E5=A5=87=E6=80=AA=E5= =91=80=EF=BC=81 > = =E5=93=AA=E4=BD=8D=E5=A4=A7=E4=BE=A0=E8=83=BD=E5=B8=AE=E6=88=91=E5=91=80=EF= =BC=9F=E8=B0=A2=E8=B0=A2=E4=BA=86=EF=BC=81=EF=BC=81 ------=_NextPart_000_0038_01C4FC6D.FCD3CBB0 Content-Type: text/html; charset="Utf-8" Content-Transfer-Encoding: quoted-printable
=EF=BB=BF
-- Vince
>=20 =E6=80=8E=E6=A0=B7=E7=94=A8C#=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E5=90=8D= =EF=BC=9F >=20 File,FileInfo,Path,Directory,DirectoryInfo=E8=BF=99=E4=BA=9B=E7=B1=BB=E9=87= =8C=E5=A5=BD=E5=83=8F=E9=83=BD=E6=B2=A1=E6=9C=89=E6=94=B9=E6=96=87=E4=BB=B6= =E5=90=8D=E7=9A=84=E6=96=B9=E6=B3=95=E3=80=82=E5=A5=BD=E5=A5=87=E6=80=AA=E5= =91=80=EF=BC=81 >=20 =E5=93=AA=E4=BD=8D=E5=A4=A7=E4=BE=A0=E8=83=BD=E5=B8=AE=E6=88=91=E5=91=80=EF= =BC=9F=E8=B0=A2=E8=B0=A2=E4=BA=86=EF=BC=81=EF=BC=81
------=_NextPart_000_0038_01C4FC6D.FCD3CBB0--
|
|
 | | From: | =?Utf-8?B?bHlx?= | | Subject: | =?Utf-8?B?UmU6IOaAjuagt+eUqEMj5L+u5pS55paH5Lu25ZCN77yf?= | | Date: | Sun, 16 Jan 2005 23:11:02 -0800 |
|
|
 | 璋㈣阿锛岄棶棰樿В鍐充簡銆傛垜绗竴娆$敤鐨凢ile绫荤殑Move鏂规硶锛岀粨鏋滃湪鍚屼竴鏂囦欢澶瑰嚭鐜颁簡涓や釜鏂囦欢锛屼竴涓槸瑕佹敼鍚嶇殑鏂囦欢锛屽彟涓涓槸鏀逛簡鍚嶇殑鏂囦欢銆備粖澶╄瘯浜嗚瘯涓鍒囨甯搞
鈥淰ince Yuan鈥濈紪鍐欙細
> Moves a specified file to a new location, providing the option to specify a new file name. > > [Visual Basic] > Public Sub MoveTo( _ > ByVal destFileName As String _ > ) > [C#] > public void MoveTo( > string destFileName > ); > [C++] > public: void MoveTo( > String* destFileName > ); > [JScript] > public function MoveTo( > destFileName : String > ); > Parameters > destFileName > The path to move the file to, which can specify a different file name. > > -- > Vince > > > "lyq" wrote in message news:931CAE57-E0A5-4B70-BB89-5FA57BF9E7A4@microsoft.com... > > 鎬庢牱鐢–#淇敼鏂囦欢鍚嶏紵 > > File,FileInfo,Path,Directory,DirectoryInfo杩欎簺绫婚噷濂藉儚閮芥病鏈夋敼鏂囦欢鍚嶇殑鏂规硶銆傚ソ濂囨憖锛 > > 鍝綅澶т緺鑳藉府鎴戝憖锛熻阿璋簡锛侊紒
|
|
 | | From: | nicholas | | Subject: | Re: 怎样用C#修改文件名? | | Date: | Tue, 18 Jan 2005 09:32:57 +0800 |
|
|
 | 人家明明写的是MoveTo方法,你却说Move sigh
"lyq" 写入邮件 news:C5EC17B0-8A47-498C-B29F-C02189F6FA80@microsoft.com... > 谢谢,问题解决了。我第一次用的File类的Move方法,结果在同一文件夹出现了两个 文件,一个是要改名的文件,另一个是改了名的文件。今天试了试一切正常。 > > “Vince Yuan”编写: > > > Moves a specified file to a new location, providing the option to specify a new file name. > > > > [Visual Basic] > > Public Sub MoveTo( _ > > ByVal destFileName As String _ > > ) > > [C#] > > public void MoveTo( > > string destFileName > > ); > > [C++] > > public: void MoveTo( > > String* destFileName > > ); > > [JScript] > > public function MoveTo( > > destFileName : String > > ); > > Parameters > > destFileName > > The path to move the file to, which can specify a different file name. > > > > -- > > Vince > > > > > > "lyq" wrote in message news:931CAE57-E0A5-4B70-BB89-5FA57BF9E7A4@microsoft.com... > > > 怎样用C#修改文件名? > > > File,FileInfo,Path,Directory,DirectoryInfo这些类里好像都没有改文件名的 方法。好奇怪呀! > > > 哪位大侠能帮我呀?谢谢了!!
|
|
|