Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VB launching application within its own folder

Featured Replies

Hi, I'm trying to make a program where it launches a .exe from within the same folder as which the program is being run. So say if the program gets installed to D:\program files\etc and then the program is run and you click one of the options to launch another .exe thats in that same folder how would you do it without using the full path e.g. Shell "D:\program files\etc\otherprogram.exe"

But so it just runs the otherprogram.exe from the same folder that the main program is installed to.

Because the user may not install it to the D: or the C: drive. I hope this makes sense.

  • Author

Is it even possible to launch an application in VB without typing the full path or is there some sort of DLL file u can make so it knows?

There is a relatively easy fix for this one. If you are using any one of many installer file creators you can have the program check the registry to find the installation path that the user chose.

If you re coding the installer yourself, just make sure it creates an "Installatio Directory" value in the directory.

VB.net has a special variable for it:

My.Application.Info.DirectoryPath()

returns the path where the executable that calls it is located

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.