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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:14:48+00:00 2026-06-01T06:14:48+00:00

So I am working on a simple .NET program for work and hit a

  • 0

So I am working on a simple .NET program for work and hit a bit of a weird roadblock I can’t figure out. The application makes use of a configuration file which adds applications to a dropdown menu. However, before it’s added to the menu, it does a system.io.file.exists to verify that the file exists, at least at the time the menu is created.

However, System.IO.File.Exists(@”C:\Windows\System32\SnippingTool.exe”) returns false, but the executable is there. Likewise, stikynot.exe also returns false. Other files in the system32 directory return true(like notepad). I can filestat these applications, but my .net program just can’t read them them and system.io.file.exists returns false. I have checked various permissions with no luck. It seems to be isolated to a few applications, but I am not sure why.

  • 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-01T06:14:49+00:00Added an answer on June 1, 2026 at 6:14 am

    That’s a feature of 64 bit Windows.

    In x64 you have two folders with system files: system32 and SysWOW64.

    If you put anything in system32, it will be seen by all 64 bit applications. SysWOW64 is there for compatibility reasons – anything put there will be visible by 32 bit (sic!) apps.

    So as far as .NET is concerned, the file does not exist. It works for notepad, because notepad.exe is present in both of those directories.

    You can test this behaviour. Create a text file in one of the directories, but not the other and check for its existence. Then change your project configuration (right click on solution -> Configuration Manager) between x86 and x64 and enjoy the result.

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

Sidebar

Related Questions

I'm working on a simple irc bot in C#, and I can't figure out
Well, simple question. I'm working with VS2008 on an ASP.NET web application which has
Context: I'm working with a relatively simple winforms application, written in VB.NET on the
I am working on a simple FOSS VB.net program that operates mostly in one
Working on a simple C program I'm stuck with an if test: int line_number
For some reason I can't seem to get the MySQL Net Connector to work
I am trying to make a simple time-calculating program in ASP.NET where people enter
I am testing a simple multicast application on linux. I got it working on
How can I play a sound based on waveform data that my .NET program
I'm working on a .NET program that executes arbitrary scripts against a database. When

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.