2
1
I have a registry entry in the Run key as follows:
type = REG_SZ, value = test, data = %temp%\test.exe
When I reboot my machine test.exe does not run, but if I do the full path of the temp folder (something like "C:\Documents and Settings\XPMUser\Local Settings\Temp") then it does run it upon reboot.
What's up with this?
I also tried type of REG_EXPAND_SZ but it still didn't work.
1Using
REG_EXPAND_SZ
should work for the Run key. Try opening a command-prompt and running the commandset temp
. Does it show the variable expanded? Try opening an elevated command-prompt and repeat. Does it expand the variable now? – Synetech – 2011-03-11T20:18:49.887Thanks guys, it turns out it was a mistake on my part. I reverted my VMWare image and now it's working fine. – Brian T Hannan – 2011-03-11T20:49:09.143
If you solve the problem on your own: either post your own answer describing the solution, or close the question as "no longer relevant". – user1686 – 2011-03-12T20:20:58.870