shifty9889 Posted June 25, 2011 Share Posted June 25, 2011 im on remaking my application which i had help on the first time but not nowmy 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 someoneit 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 havei 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 thatbut if you have any questions or help please feel free to comment Link to comment Share on other sites More sharing options...
prandiningrat Posted June 25, 2011 Share Posted June 25, 2011 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 More sharing options...
shifty9889 Posted June 27, 2011 Author Share Posted June 27, 2011 thank's that NSIS helped me a great deal it helped me solve my original issue kudos for you my friend Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now