What is the best way to represent a Windows directory, for example \"C:\\meshes\\as\"
? I have been trying to modify a script but it never works because I can\'t
In Windows, you can use /
in your path just like Linux or macOS in all places as long as you use PowerShell as your command-line interface. It comes pre-installed on Windows and it supports many Linux commands like ls
command.
If you use Windows Command Prompt (the one that appears when you type cmd
in Windows Start Menu), you need to specify paths with \
just inside it. You can use /
paths in all other places (code editor, Python interactive mode, etc.).