Path where the program has been launched

  • 14 years ago

    Hi to all u ppls,

    Could some1 please tell me or better yet make me a little sample how to check where the program file (.exe) has been launched. Example :

    If I launch the program from C:\ (like C:\program.exe), I need to know how to add that directory c:\ (or C:\temp\, if the program has been launched from there) to string (as path to program file)

    To where i need that is that i need to check if that path holds couple of more files to settings etc.

    I hope my english is good enoung for u guys to understand the problem here.

    thanks....

  • 14 years ago

    Application.StartupPath

  • 14 years ago

    great, thanks for quick answer. this topic is done.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Nine people can't make a baby in a month.” - Fred Brooks