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

  • Home
  • SEARCH
  • 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 6705043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:21:30+00:00 2026-05-26T07:21:30+00:00

Having to deploy a VBA application on several computers under Windows XP, I needed

  • 0

Having to deploy a VBA application on several computers under Windows XP, I needed to automatically create a particular file in an universal place, independent of hard drives, directory structure, even the OS language: the root directory of the C drive, namely C:\

This worked fine … until these computers started to migrate to Vista or Windows 7, which I discovered don’t easily allow writing on the C drive.
What could be an alternate universal writable location that would work under any version of Windows, in any language, for all users?

  • 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-26T07:21:31+00:00Added an answer on May 26, 2026 at 7:21 am

    Call a Windows API that returns the path to a SpecialFolder on the respective machine and use that – well suited are for example

    • CSIDL_COMMON_DOCUMENTS (non-user-specific)
    • CSIDL_COMMON_APPDATA (non-user-specific)
    • CSIDL_APPDATA (user-/app-specific)
    • CSIDL_MY_DOCUMENTS (user-specific)

    The Windows API takes care of all that you described – locations above are writeable, work for all Windows versions and not language-dependent.

    For VBA source code and samples see http://www.cpearson.com/excel/SpecialFolders.aspx

    For MSDN references see:

    • http://support.microsoft.com/kb/252652/en-us
    • http://msdn.microsoft.com/en-us/library/windows/desktop/bb762181%28v=vs.85%29.aspx
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I having problem when I deploy an application on Windows Mobile Device .The device
I'm having a problem using deploy:deploy-file with snapshots I'd like some advice on please.
I am having difficulty with managing configuration of an ASP.Net application to deploy for
I am having a problem with Vlad on windows. After calling rake vlad:deploy I
I'm trying to deploy my rails application with capistrano, but I'm having some trouble
I am having a web application with an applet which will copy a file
I am having an ASP.NET Web application that i will deploy to an Internet
i having task to upload file to Web application server, when test with local
I've been having endless woes trying to deploy an NServiceBus application that I had
I am attempting to deploy my first app on Heroku and having a little

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.