Running applications in their own environment space on Windows XP

  • Thread starter Thread starter Stef
  • Start date Start date
S

Stef

Hi,

I wonder if anybody has a solution. I want to run a windows application
but to set up a different environment space at start up; i.e. have
different PATH settings when I start the app for example.

I suppose I am looking to launching a process in its own memory space
being able to set that up on a per launch basis - perhaps through a
batch for PIF file?

Does anybody know if this is possible in Windows XP?

Thanks in advance,

Stef
 
You have access to environmental variables in the System app in Control
Panel. Advanced tab, see button

setlocal is a command for batch processes.

--superapp.bat--
rem *******Begin Comment**************
rem This program starts the superapp batch program on the network,
rem directs the output to a file, and displays the file
rem in Notepad.
rem *******End Comment**************
@echo off
setlocal
path=g:\programs\superapp;%path%
call superapp>c:\superapp.out
endlocal
start notepad c:\superapp.out
--cut here---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top