Jump to content
xisto Community
Sign in to follow this  
de4ws

Config

Recommended Posts

I need help making a config screen for a code saving program that i am working on. The program is supposed to save the codes on the comp in form of .docThat part works fine, the next part however i need help with.How do i make it so when someone else dls it, it know where to save it (i have code that save it to MY computer, and that is not the same on every computer) I am thinking a config screen, but where would THAT be saved to.... ;) Thanks

Share this post


Link to post
Share on other sites

If I get you correctly, You want to save programs configuration somewhere, but You don't know where it will end up?

Try something like this:

Dim cfgdir As String[/br]Dim cfgfile As String[br]cfgdir = App.Path[/br]If Right(cfgdir, 1) <> "\" Then cfgdir = cfgdir & "\"cfgfile = "my.cfg"

This code will save 'my.cfg' file in your programs folder, where ever it is. Hope it helps.

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.