1.

  MsgBox(System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop))

  'Environment.SpecialFolder.Desktop 邏輯的 [桌面],而不是實體的檔案系統位置。

 


2.

  MsgBox(System.Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)) 

  'Environment.SpecialFolder.DesktopDirectory 表示用來實際儲存桌面上檔案物件的目錄。 

創作者介紹
創作者 踢踏踢 的頭像
PingPing

踢踏踢

PingPing 發表在 痞客邦 留言(0) 人氣( 990 )