I am using composer to install Magento 2.4.6-p1 on my local computer. I have installed XAMPP on my F disk, so the route for installing Magento is F:\xampp\htdocs. So I inputted cd F:\xampp\htdocs in the Command Prompt, however there is no change, it still starts with C:\Users\zhf>. However, in the tutorial I follow, when the person input C:\xampp\htdocs, I see it starts with C:\xampp\htdocs in his Command Prompt. enter image description here enter image description here
Also I tried to input the next command in Command Prompt: composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.2 It returned the error of The syntax of the command is incorrect.
I think I need to first come to the right route, which is F:\xampp\htdocs. But I really don't know how to. When I input cd F:\xampp\htdocs, it always comes next with C:\Users\zhf>, no change.