Answered by:
start command in cmd shell doesn't work, neither does delayed expansion

Question
-
why is cmd shell broken over and over again? we can't do development, and probably neither can Microsoft.
please make it work so we can compile things - the GUI isn't the main way build environments are made - and I don't .
for /r is partially broken too, I call batch files and somewhere along the way, it gives up processing more for no good reason.
perhaps it's because it ran out of 32-bit RAM? make explorer.exe, conhost.exe, and cmd.exe 64-bit please as much as possible. compiles can take up to 32GB RAM or more, so a 32-bit process will crash at 1.6GB (unless you have a video card >=4GB then a 32-bit process will just die trying to start because it gets 4GB-videocardRAM-OSRAM space).
also, start does not work without the shell title coming right after the start command, and somehow it''s unable to differendiate a double-quoted exe path and a shell title. try finding out if it exists as a filepath. you can also check the path for executable type file extensions.
the shell also needs decent variable expansion.in a batch file using a for statement, for %%x in (aaaa bbb ccccc ddddd) do (
set somevar=somevalue
^^^^^setting a variable here rarely works
echo %x:~0,2%
^^^^this doesn't work, I have not found a way for it to work, and it's not documented in set /?
)
and start "shellname" "exepath"
should start exepath in parallel using cmd /k but cmd /k is broken after a certain date a few months ago or a year ago. so now it starts jobs in serial rather than in parallel.
- Edited by Jim Michaels Sunday, October 15, 2017 3:37 AM one more defect to list
- Moved by 宝宝徐 Monday, October 16, 2017 8:29 AM
Sunday, October 15, 2017 2:26 AM
Answers
-
I'd ask for help over here.
https://social.technet.microsoft.com/Forums/en-US/home?forum=win10itprogeneral
https://social.technet.microsoft.com/Forums/en-US/home?forum=w8itprogeneral
https://social.technet.microsoft.com/Forums/en-US/home?forum=w7itprogeneral
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Monday, October 16, 2017 11:19 PM
- Marked as answer by pituachMVP Sunday, October 22, 2017 4:33 AM
Monday, October 16, 2017 12:07 PM
All replies
-
Hi Jim Michaels,
This forum is for Visual Studio IDE issues, as your issues is about cmd shell, I will help you to find a better forum for it.
Your understanding and cooperation will be grateful.
Best regards,
Fletcher
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Edited by Fletch Zhou Monday, October 16, 2017 7:11 AM
Monday, October 16, 2017 7:11 AM -
I'd ask for help over here.
https://social.technet.microsoft.com/Forums/en-US/home?forum=win10itprogeneral
https://social.technet.microsoft.com/Forums/en-US/home?forum=w8itprogeneral
https://social.technet.microsoft.com/Forums/en-US/home?forum=w7itprogeneral
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Monday, October 16, 2017 11:19 PM
- Marked as answer by pituachMVP Sunday, October 22, 2017 4:33 AM
Monday, October 16, 2017 12:07 PM -
it's been posted to https://social.technet.microsoft.com/Forums/en-US/066721e8-2b3b-40f3-bd93-8620fce3b2a2/start-command-in-cmd-shell-doesnt-work-neither-does-delayed-expansion?forum=w7itprogeneral
- Edited by Jim Michaels Thursday, October 26, 2017 8:08 PM
Thursday, October 26, 2017 8:05 PM