Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my Windows Embedded 7 Standard installation, I'm setting an environment variable using the synchronous command

REG ADD "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Environment" /v Name /t REG_SZ /d "Data"

As I have read, I can't access this variable until the next restart of my system. I tried to restart using the following command (I found it here)

cmd /c shutdown /r /f /t 75

This did not work for me. (Also calling the command via the regular Cmd.exe-Window is working.)

Is there any way to restart a Windows Embedded 7 Standard OS using synchronous commands? (Or maybe there are other solutions to the problem of accessing the environment variable?)

Thank you in advance for your answer!

share|improve this question

As I remember the command in cmd.exe was like this: shutdown -s -r -t 30 It will restart your computer after 30 Seconds and you should run it with administrator privileges.

share|improve this answer
up vote 0 down vote accepted

After some struggle, it eventually worked by copying the line SHUTDOWN /r /f /t 30 to a batch file and executing the file via a synchronous command. I don't know, why it would not work by just running the line directly...

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .