Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

? asked in 電腦與網際網路程式設計 · 2 decades ago

VB 絕對路徑和相對路徑

當我更換picture時都要寫絕對路徑C:\\Program Files\\*.jpg





app.path 是什麼可以解釋

2 Answers

  • 2 decades ago
    Favorite Answer

    App.Path 就是程式執行的路徑,有幾個地方要注意:

    1. 在開新的執行檔後,第一次存檔前,App.Path 是指「C:\Program Files\VS...什麼的」(如果你是用 VB6)

    2. 在存檔後,App.Path 是在你存檔的目錄。

    3. 如果程式是在「C:\AAA」那 App.Path 是「C:\AAA」,

     但是,如果程式是在 「C:\」,那 App.Path 會是「C:\」


    Source(s): VB6 的經驗
  • ?
    Lv 5
    2 decades ago


    就將路徑改成 .\*.jpg

Still have questions? Get your answers by asking now.