?
Solved

Is it possible to programmatically change the path?

Posted on 1998-08-13
5
Medium Priority
?
151 Views
Last Modified: 2013-12-16
What we're trying to do is programmatically append our directory to the path (permanently) during setup. It's a simple little .exe on NT, but the only way we know to do it on 9x is to modify autoexec.bat and reboot. Any suggestions?
0
Comment
Question by:barrett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 9

Expert Comment

by:rmarotta
ID: 1757643
Have you tried:

PATH=%PATH%;"new directory"

Regards,
Ralph

0
 

Author Comment

by:barrett
ID: 1757644
Yes, we could take this approach, but my PM doesn't want to munge autoexec.bat, so we're kind of stuck. All the replies I've received so far tall me that there is no other way to do it under Win9x.
0
 
LVL 10

Accepted Solution

by:
MasseyM earned 300 total points
ID: 1757645
You can run the PATH command at the DOS prompt... that would eliminate the need to reboot, but AUTOEXEC.BAT is the only place where the "paths" are set 9other than the permanant "windows" paths... They are located in your registry.

0
 
LVL 9

Expert Comment

by:rmarotta
ID: 1757646
PM ??

You don't have to include the statement in the autoexec.bat file.  Simply issue it from a Dos prompt.

You could also write a simple batch file to change to the new directory and then call the program.

Let me know exactly what you are trying to do.......

Ralph

0
 

Author Comment

by:barrett
ID: 1757647
You're both right, of course, and the only solution appears to be what MsDev does w/ its vcvars.bat file. We were hoping for a persistent solution that doesn't require setting the PATH in each new DOS box w/ a .bat file (NT is so much nicer). The bug against our setup calls for this change to be made once, during installation, so it's invisible to the user. Probably not gonna happen, though.

BTW: PM is MS-speak for "Program Manager".
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question