written by cail • posted in How-To • 5,114 views 2 comments

Thanks google!

With the keyword "cannot spawn cmd.exe", the first hit taught me how to fix error spawning "cmd.exe" in Windows 7, which should also work for other windows versions.

Jaeger Mitchell post the fix method on Thursday, January 26, 2006 9:19 PM: the error is caused by changed Path property, which should be REG_EXPAND_SZ.

How to fix?

  1. run regedit.exe
  2. go to the folder of
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
  3. create a new expandable string (REG_EXPAND_SZ) called "PathX", copy "Path" value string into "PathX"
  4. delete the old "Path" and rename "PathX" to "Path"
  5. reboot

Previous:
Next:

Leave a Reply

QR code of this post

blog by cail