Solved

Changing WIN95 Path Enviroment on the "fly"

Posted on 1998-06-20
6
145 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
[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
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
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

 
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

Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!

Question has a verified solution.

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

Suggested Solutions

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…
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

752 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