Solved

Changing WIN95 Path Enviroment on the "fly"

Posted on 1998-06-20
6
139 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?

Are you 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

Do email signature updates give you a headache?

Are you 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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Bulk Reorder File Names 4 57
Malware Exploit 5 104
Windows 2012 STD Updates Issue 15 28
Recycle bin software for network mapped drives? 8 22
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

863 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

23 Experts available now in Live!

Get 1:1 Help Now