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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:36:00+00:00 2026-06-06T15:36:00+00:00

I am writing this app in windows form c#. When user exit from this

  • 0

I am writing this app in windows form c#. When user exit from this app , it asks for system reboot. While exiting it writes some XML file and saves the file in current directory(bin/debug)….On system restart my app restarts itself (by reading value from registry)and check if those file exist (if(File.Exists))or not..My problem is on system restart it doesn’t check for file existence at all…and shows wrong output…But when I close it and restart it again it shows the right output..I really cant understand its problem…Can anybody please help me…??

  • 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-06T15:36:01+00:00Added an answer on June 6, 2026 at 3:36 pm

    The program needs to read the file from an absolute directory location and not a relative or current. Its context upon start may be different than when it was last run.

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

Sidebar

Related Questions

I'm writing a system tray app for Windows (with much info gleaned from this
I am writing a .Net 4 Windows Forms app. For some reason with this
I'm writing a silverlight application that resembles a shopping cart system. This app can
I'm trying to include in my Windows Form App a way that when user
I'm writing a Windows Form app that uses an API (the smartFOCUS API, to
I am writing a Windows Phone 7 app to pull weather data from WeatherBug's
I am writing some video files under Windows from a camera. I need the
This is crazy. I ran across this in an app I was writing. The
I am writing a metro app. This works: HttpClient client = new HttpClient(); var
I'm writing an App and an accopmanying widget that needs data. This data is

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.