Jump to content
Sign in to follow this  
zeroonnet

[VB.net] Identificar a pasta onde está o .exe executado

Recommended Posts

zeroonnet

Queria tipo por assim app.path e ele me retorna-se a pasta de onde está o .exe que eu abri para o programa iniciar isso é possivel?

Share this post


Link to post
Share on other sites
karva

    Public Function App_Path() As String
        Return System.AppDomain.CurrentDomain.BaseDirectory()
    End Function

Portanto:

System.AppDomain.CurrentDomain.BaseDirectory()


Proud LEIC-A@IST student!

Share this post


Link to post
Share on other sites
Ziwdon

Application.StartupPath


"Rejoice not against me, O mine enemy: when I fall, I shall arise; when I sit in darkness, the LORD shall be a light unto me." - Micah 7:8 (KJV)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.