Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8533263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:55:22+00:00 2026-06-11T09:55:22+00:00

Not sure I have the best title for this question. Feel free to modify

  • 0

Not sure I have the best title for this question. Feel free to modify it or suggest a change and I will do the edit myself.

I have a standalone executable which wants to maintain a settings.bin file specific to the application. There are two obvious ways to do it:

1. Create/Read the file from the local directory where the executable resides

  • Positive: User can copy the exe and bin file to multiple directories and have multiple versions with different settings.bin files.
  • Negative: I don’t want to polute executable directory.

2. Create/Read the file from a “hidden” location like the Local Application Data folder.

  • Positive: Not poluting the executable directory.
  • Negative: The settings.bin file will be shared amoungst any instance
    of the executable regardless of where it is locaed.

I don’t want to do either of these solutions because neither meet both of my requirements, which are:

  • Don’t polute the executable directory (IE: don’t create a local file).
  • The settings.bin file is different based on the location of the executable.

Any thoughts? I wanted to embed the settings.bin file as a resource but quickly learned you can’t write to an embedded resource. I’m all out of ideas.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:55:24+00:00Added an answer on June 11, 2026 at 9:55 am

    Use option 2 with a small modification that cancels your negative point (not shared)

    You must have something that you can differentiate between exe files.

    If all reside in different paths I would do the following:

    1) Hash the location of the executable (md5 of the path)

    2) Create a directory in the appdata with the hash

    3) Store my files there

    Else I would try to enumerate myself compared to other processes:

    1) When starting check the app data.

    2) Attempt to lock a file for writing at:[App Data]\1\sem.oi

    3) If that failed attempt to lock a file for writing at:[App Data]\2\sem.oi

    Use the settings in the directory that you were able to open the file in

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not sure what the best title would be for this question, or even if
I'm not the sure title of this question is the best, but hopefully this
NOTE: I am not exactly sure how to title or tag this question, so
I'm not sure this question has the best of titles but I'm not sure
I'm not sure if the question title is the best one but it was
I'm not sure how best to describe this, or the best title, so bear
Not sure if it's the best title for the question... maybe someone could rename
I've got a problem I'm not sure how best to solve. I have an
I'm not sure what I have to set myself to override whatever the yui
not sure its a stack overflow question I have a Mac and am hosting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.