Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Changing WIN95 Path Enviroment on the "fly"

Posted on 1998-06-20
6
Medium Priority
?
148 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
Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

 
LVL 2

Expert Comment

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

Accepted Solution

by:
tbaffy earned 300 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
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…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

721 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