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 6667549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:56:43+00:00 2026-05-26T02:56:43+00:00

My program works fine on Windows 7/ Vista and most Windows XPs I’ve tested

  • 0

My program works fine on Windows 7/ Vista and most Windows XPs I’ve tested on. I open a file that is 1 directory under the program itself. It’s Administration\adm.txt (that’s exactly the relative directory that I use) . I am using .NET 2.0 for my project.
I tried to run my program on an old Windows XP(which had .NET 2.0 installed) and I got the strangest error I have ever seen in my life. The program runs fine, until the user opens an open file dialog. Afterwards the program started thinking that it was in the directory where the open file dialog last was. So if the open file dialog was last browsing through C:\My Documents\ and I try to open the Administration\adm.txt file I get an exception that “C:\My Documents\Administration\adm.txt” does not exist. Unfortunately I can’t use that computer myself again, but I’d really like to know how this happened. Does anybody have any 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-05-26T02:56:43+00:00Added an answer on May 26, 2026 at 2:56 am

    Standard behaviour in Windows is for the file dialogs to change the application’s current directory. You can prevent it with the OFN_NOCHANGEDIR flag to the OPENFILENAME structure
    that is used to configure the open and save dialogs.

    For the story, see the Old New Thing blog:

    http://blogs.msdn.com/b/oldnewthing/archive/2010/11/12/10089878.aspx

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

Sidebar

Related Questions

I have a program that works fine on VS2008 and Vista , but I'm
In my java program,I use URLConnection to get a url.It works fine under windows,but
The following code works fine in Windows: subprocess.Popen([PATH_TO_G++]/g++ file.cpp -o file.exe) However in Linux
I have been writing a C# app that works fine on Windows. It controls
I'm trying to use MODI to OCR a window's program. It works fine for
I have used ajax auto completeextender in my program well its works fine no
My program uses sqlite3 plus python. It works fine with python 2.6.2 I moved
i m running hello world program in spring which works fine with eclipse but
The example program below compiles two in-memory assemblies. The first compilation works fine. The
I creating a program which send newsletter with a background image. It works fine

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.