Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now 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.

Another Visual Basic 2008 question?

Ok so I want to move all my files on to a USB stick and run the Install App from the stick. Now when I coded the app I had all my files on my C: Drive so I coded like this.

= "true" Then Process.Start("C:\*****\******.exe")

But now that all of my files are on a USB stick drive G: the application can't find the files. Is there a code that will let the App find these files no matter what the drive letter is?

Thank you

Update:

@computerguy103, Thank you very much, It works like a charm!

3 Answers

Relevance
  • 9 years ago
    Favorite Answer

    Don’t hard-code the entire path. If the .exe is in the same folder as the installation app, you should just be able to put "******.exe" and it should start the app. If it is in a subfolder just put something like "subfolder\******.exe".

  • 5 years ago

    It isn't viable to make use of a registration KEY that belongs to an additional man or woman. When you check in, Microsoft copies no less than 3 of the the MAC addresses from the laptop that the application is being registered to and neighbors those MAC addresses with the Registration KEY. So, while you try to use a KEY that's already registered, The KEY and the MAC addresses may not fit and therefor the registration will fail.

  • ¤__¤
    Lv 4
    9 years ago

    Yeah! Process.Start(CurDir() & "\whatever.exe");

    Dunno if it's / or \

Still have questions? Get your answers by asking now.