Page 1 of 1 1
Topic Options
#153896 - 2005-12-22 02:51 PM Problems with SETM
blackcure Offline
Fresh Scripter

Registered: 2005-06-30
Posts: 10
Hello all

In my logonscript, whith the "SETM" command I change the PATH enviromment variable. New PATH is running OK in windows, then I can use this new path for execute my utils, but in kixtart script the path variable isn't update.

Any idea for resolve this?

Thanks

Top
#153897 - 2005-12-22 02:59 PM Re: Problems with SETM
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Quote:


SetM

Action: On the Windows NT-family (NT//2000/XP), sets variables in the environment of the local computer (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment).
On Windows 9x, sets variables in the global Windows environment (similar to the functionality offered by WINSET.EXE).


Syntax: SETM "variable=string"

Remarks: After any change to the environment, KiXtart informs running programs that the change was made, prompting them to regenerate their environments. Programs that support this feature (such as Program Manager, Task Manager, and Windows Explorer) update their environments when they receive the WM_SETTINGCHANGE message.
The environment of the current process (KiXtart 2001) is not affected.





So no, there is no way to update.
You will have to give the full path when running things from this process
_________________________



Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 202 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.052 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org