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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:55:55+00:00 2026-05-27T04:55:55+00:00

Apologies if I overlooked this problem in another thread, but I was unable to

  • 0

Apologies if I overlooked this problem in another thread, but I was unable to find it (here or really anywhere on the internet).

In Windows (XP), I have the following global environment variable which I set by right-clicking My Computer, then choosing Properties > Advanced > Environment Variables:

CUSTOM_HOME = c:\some\folder\path

How do I interpolate this into an execution within a batch file? I need to “append” subfolder\program.exe to this path so that I get c:\some\folder\path\subfolder\program.exe in the batch file. I try something like

%CUSTOM_HOME%\subfolder\program.exe

but when I execute the batch file, the output just shows

> \subfolder\program.exe
> The system cannot find the path specified.

What’s the correct syntax so the full path to the .exe will be correct?

  • 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-27T04:55:56+00:00Added an answer on May 27, 2026 at 4:55 am

    That is the correct syntax, but you will need to add quotes around the whole thing in case the custom_home path contains spaces.

    If it isn’t being found, then that means the global env variable is either misspelled or not available. You can test this at the command line with SET CUSTOM_HOME.

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

Sidebar

Related Questions

Apologies in advance for the long-winded question. I'm really a database programmer, but have
Apologies if this is a duplicate, but I've not managed to find this question
Apologies if I am not wording this correctly but what I have at the
Apologies if this is a too basic question but I couldn't find any satisfactory
Apologies if this is a dup, I searched but couldn't quite find the info
Apologies if this question has been asked. I couldn't find it, but if it
Apologies if this question has been asked already, but suppose we have this code
Apologies if this has been answered before, but I find it very difficult to
Apologies, but I have searched and read previous answers on this question but couldn't
Apologies in advance for the possible flame thread, but that's not what I'm going

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.