开发者

D:\file\file1\SVN how to get folder path?

开发者 https://www.devze.com 2023-02-08 18:30 出处:网络
D:\\Saran\\Sof开发者_开发知识库tware\\SVNthis is mypath. How to get only SVN in c#?Use string myFileName = Path.GetFileName( @\"D:\\Saran\\Software\\SVN\" );

D:\Saran\Sof开发者_开发知识库tware\SVN this is mypath. How to get only SVN in c#?


Use

string myFileName = Path.GetFileName( @"D:\Saran\Software\SVN" );

myFileName will now contain the string "SVN".

See the System.IO.Path docs for all the functions, and examples, this class provides.


I did just that about ten minutes ago! If you have TortoiseSVN, create a directory, right-click on Windows Explorer and select "SVN Checkout..."

For url, give file:\d\Saran\Software\SVN. Then you get content of the subversion repository.

0

精彩评论

暂无评论...
验证码 换一张
取 消