simple question:
howto: set windows system variables with Qt
is there a way 2 do this with Qt?
cheers fil
simple question:
howto: set windows system variables with Qt
is there a way 2 do this with Qt?
cheers fil
How about
Qt Code:
system("set path <reqd value>");To copy to clipboard, switch view to plain text mode
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
informatics (10th July 2007)
ok thx!
but then it would be
Qt Code:
system("set path=<reqd value>");To copy to clipboard, switch view to plain text mode
ok and how do i get one
thanks!
cheers fil
Ok thanks for correcting. I generally don't use windows
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
i know i'm one of the singles developing on windows
btw.: u know how 2 get an environment variable?
BTW the environment variable might not be set permanently. Probably the variable might me reset just after system function.
So i'm not sure whether it works or not.
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
getenv()
Found this link in google http://www.informit.com/guides/conte...eqNum=136&rl=1
It might help you.
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
informatics (10th July 2007)
Hi,
QProcess supports accessing environment variables for the current process with environment(), setEnvironment() and QProcess::systemEnvironment().
To change the system's environment you probably have to change the registry, see: http://msdn2.microsoft.com/en-us/library/ms682653.aspx
HTH, Bernd
Please take into account that in many corporate systems, users are not administrators and are not guaranteed to have read/write access in the HKLM where these keys are maintained (actually its HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session Manager\Executive\Path). This had been the source of many a jolly issue where HKLM registry keys are being opened with KEY_ALL_ACCESS which subsequently fails (in other peoples apps i should add)
Pete
informatics (18th July 2007)
Bookmarks