function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lokesh BoganathamLokesh Boganatham 

ended with error spawn C:\WINDOWS\system32\cmd.exe ENOENT

Hi guys, When i am starting to connect my org and visualforce, i am getting the below error.

Starting SFDX: Authorize an Org
22:50:06.500 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl https://login.salesforce.com --setdefaultusername
22:50:06.501 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl https://login.salesforce.com --setdefaultusername
 ended with error spawn C:\WINDOWS\system32\cmd.exe ENOENT



I am following this document for setup. please help
Best Answer chosen by Lokesh Boganatham
Lukesh KarmoreLukesh Karmore
hello Lokesh,
Please Refer this video it solve my issue,  follow full procedure : https://www.youtube.com/watch?v=pRkcutdeMfY&t=934s
Hope it solve your query and mark the best so it help others.
Thanks

All Answers

Lukesh KarmoreLukesh Karmore
hello Lokesh,
Please Refer this video it solve my issue,  follow full procedure : https://www.youtube.com/watch?v=pRkcutdeMfY&t=934s
Hope it solve your query and mark the best so it help others.
Thanks
This was selected as the best answer
Lokesh BoganathamLokesh Boganatham
Thanks Lukesh. I tried uninstalling CLI & VScode and downgraded jdk to 1.8. This worked
Pavan Kumar K 1Pavan Kumar K 1
cmd.exe might be missed in C:\Windows\System32 ,if yes try to copy it from C:\Windows\SysWOW64 and paste it in C:\Windows\System32,this resolved my problem