This is the first suggested upload in the Arduino 101 getting started instructions.
The error is:
cmd /C copy /y "C:\Users\Ralph\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp\Blink.ino.elf" "C:\Users\Ralph\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp..\arduino101_sketch.debug.elf"
exec: "cmd": executable file not found in %PATH%
Error compiling for board Arduino/Genuino 101.
I just purchased the Arduino 101 from Adafruit should I return it?
Woops I had run the command as a administrator and it work.
If I run it as a user not administrator it fails!!
C:\Users\Ralph>cmd /C copy /y "C:\Users\Ralph\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp\Blink.ino.elf" "C:\Users\Ralph\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp..\arduino101_sketch.debug.elf"
'cmd' is not recognized as an internal or external command,
operable program or batch file.
So how do I tell the IDE to run as a administrator?
I think you may be in UAC hell? When users and admins see different files in given locations, that's usually where you are. Look up UAC File and Registry Virtualization - it can interfere with modifying files in certain protected locations, with result being that different users will see different files in those locations. I haven't looked down the rabbit hole in Win10 with Arduino - I haven't had that problem.
It may well be that some other thing that happened on your system resulted in the strange state of affairs. It wouldn't surprise me if someone or something got the bright idea to try to get rid of cmd.exe (either security software trying to keep users from breaking their computer, or malware trying to make it harder for users to fix their computer)
It's certainly not a problem I've seen go by on these forums before - it sounds to me like a system issue, not something specific to arduino.