Solved

Changing WIN95 Path Enviroment on the "fly"

Posted on 1998-06-20
6
138 Views
Last Modified: 2013-12-16
While a user is still logged on, WITHOUT going to a DOS
BOX, I would like to change the enviroment of the W/S.
 Specifically, when a WIN95program launchs, a new path
statement comes into affect. When the user shuts down the app and starts another, the path would be reverted to the
default, then  if another app is started, any new path
statement would become active. WINNT does this no problem.
 If possible, I would like to avoid any reg file alterations. Problem with a "simple" bat file and path statement is the path varible with be parsed in a dos box and not held while the WIN program is running.
0
Comment
Question by:poomba1
6 Comments
 
LVL 2

Expert Comment

by:ViperOne
ID: 1756517
Batchfile...?
Something like this:

Path=NewPath
Call C:\PROGRAM\YourProg.EXE
PATH=DEFAULTPATH

If this suits you, I'll repost as an answer...

Greetz,
Simon
0
 
LVL 1

Author Comment

by:poomba1
ID: 1756518
Edited text of question
0
 
LVL 17

Expert Comment

by:mikecr
ID: 1756519
If your going to want to set the patch back to the way it was when your finished, then your going to need to use the Set Path statement in your batch file to changer your environment. A regular Path statement will not update the path entirely. Use something like this:

Set Path=c:\windows;c:\windows\command
@call "program name"
Set Path="original path statement in autoexec.bat"

See if this works for you and let me know.

Good Luck!
Mike
0
Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

 
LVL 2

Expert Comment

by:ViperOne
ID: 1756520
it's the idea that counts...
0
 
LVL 2

Accepted Solution

by:
tbaffy earned 100 total points
ID: 1756521
You can use the winset.exe program from the Windows 95 CD-ROM to set any global environment variable in Win95.  The program is in the \admin\apptools\envvars folder on the CD-ROM.  This program has the same syntax as the normal set command.  There is a readme.txt file in the same folder that explains more about its use.
0
 
LVL 1

Author Comment

by:poomba1
ID: 1756522
Thanks for your help. It's pretty close to what I am looking for. Just the issue of reverting back to a users original enviroment is a bit of a stickler, but hey you can't have it all!
Thanks again :)
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now