Show pagesourceOld revisionsBacklinksAdd to bookBack to top Share via Share via... Twitter LinkedIn Facebook Pinterest Telegram WhatsApp Yammer RedditRecent ChangesSend via e-MailPrintPermalink × Book Creator Add this page to your book Book Creator Remove this page from your book Manage book(0 page(s)) Help MainFile Property of IProject Description Main File path Property type Read-Only Property of type BSTR Syntax JavaScript var sPathName = Project.MainFile; Visual Basic Script sPathName = Project.MainFile C++ BSTR sPathName; HRESULT hr = Project.get_MainFile(&sPathName); See Also IProject