Jump to content

visual studio please help if you can !!!


Recommended Posts

im on remaking my application which i had help on the first time but not now

my application is basically a program starter which loads a rom with an emulator

but i realized that all the file path's are in my c drive e.g.this is the location of the vba emulator

"C:\Users\shifty\Desktop\pokemon games\Emulator\VBA\VisualBoyAdvance.exe"

and this is the location of the rom

"C:\Users\shifty\Desktop\pokemon games\Roms\Red\Pokemon Red.gb"

 

so i was using this code so when i click a button it loads that rom up in that emulator

 

Private Sub Red_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Red.Click
       Shell("C:\Users\shifty\Desktop\pokemon games\Emulator\VBA\VisualBoyAdvance.exe ""C:\Users\shifty\Desktop\pokemon games\Roms\Red\Pokemon Red.gb""", vbNormalFocus)
   End Sub

 

then after completing the application i realized if i sent this application to someone

it would look for the files in their c drive but for my user name and on my desktop "C:\Users\shifty\Desktop\" which they dont have

i dont know how to make the application look in a certain folder

 

if someone could explain in detail of how to do this it would help a lot

 

i cant find an easier way to explain that

but if you have any questions or help please feel free to comment

Link to comment
Share on other sites

I dont have any experience in programming like VS scripts, but I think you must define desktop folder as variable. there are 2 desktop folders, current profile and all user..so your application will automatically set to the right folder.

If just simple application like this, you can use NSIS(Install script). No need experience in programming language..and those variables already defined..sorry if can't help.

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...