Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

Changing WIN95 Path Enviroment on the "fly"

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
poomba1
Asked:
poomba1
1 Solution
 
ViperOneCommented:
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
 
poomba1Author Commented:
Edited text of question
0
 
mikecrCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
ViperOneCommented:
it's the idea that counts...
0
 
tbaffyCommented:
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
 
poomba1Author Commented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now