最新の更新情報

2012年5月
« 4月    
 12345
6789101112
13141516171819
20212223242526
2728293031  

本ブログのURL

qrcode.png

お天気

 
このブログ「吟遊詩人の戯言」 の記事検索...

【C#】ファイルパスより ファイル名とか,拡張子とかを取得する方法


キーワード(クリックで関連記事が読めます) → ,

関連記事



 
 

System.IO.Pathクラスに,いろんなメソッドが,詰まっているみたい

    System.IO.Path.GetFileName()  ファイル名の取得
    System.IO.Path.GetExtension()  拡張子の取得
    System.IO.Path.GetFileNameWithoutExtension() 拡張子を除いたファイル名の取得
    System.IO.Path.GetDirectoryName()  ディレクトリパスの取得
    System.IO.Path.GetPathRoot() ルートディレクトリの取得


だそうです

忘れないように,カキコ!

 
 
 
 

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt="">