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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:52:51+00:00 2026-05-10T18:52:51+00:00

On OS from win 2000 or later (any language) can I assume that this

  • 0

On OS from win 2000 or later (any language) can I assume that this path will always exists? For example I know that on win xp in some languages the ‘Program Files’ directory have a different name. So is it true for the System32 folder?

Thanks. Ohad.

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T18:52:52+00:00Added an answer on May 10, 2026 at 6:52 pm

    You definitely cannot assume that: Windows could be installed on a different drive letter, or in a different directory. On a previous work PC Windows was installed in D:\WINNT, for example.

    The short answer is to use the API call GetSystemDirectory(), which will return the path you are after.

    The longer answer is to ask: do you really need to know this? If you’re using it to copy files into the Windows directory, I’d suggest you ask if you really want to do this. Copying into the Windows directory is not encouraged, as you can mess up other applications very easily. If you’re using the path to find DLLs, why not just rely on the OS to find the appropriate one without giving a path? If you’re digging into bits of the OS files, consider: is that going to work in future? In general it’s better to not explicitly poke around in the Windows directory if you want your program to work on future Windows versions.

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

Sidebar

Related Questions

I have some code that can spawn background worker threads from anywhere within it.
We have an old Access 2000 database that we need to pull data from
How can I switch off DEP from command line in Win 2003? Or at
How can I launch a new Finder window (or Explorer on Win) from python
How to redirecting from win forms to web forms ?
I want to do a effect like the switching windows from Win 7 [Win]+[Tab]
I need a Java way to find a running Win process from which I
I am using the Win Api function GetModuleBaseName to retrieve the process name from
Is there any api for viewing html content from w/in your blackberry application? To
From a desktop application developer point of view, is there any difference between developing

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.