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.
精彩评论