开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜