Quote:Hey, thanks for your replies.
The error message is in German, but it's something like "The parameter can not be processed, because the parameter name "p" is not unambiguous. Possible matches:-Path -PipelineVariable -LiteralPath.
help mkdir and help rmdir don't show the argument -p, but they do show -path. Typing this seems to be superfluous though.
PS was running in restricted mode, but setting it to unrestricted doesn't seem to have changed anything, so I guess I'll change it back. How do I check if Command Extensions are on?
Also, in both cmd.exe and PS, / is automatically converted to \. Is there any reason to stick to only typing /?
From the start menu- select run (or use Win key R)
Type "regedit"
Navigate to:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor
You should have an entry "EnableExtensions" with a Data value of 1, if it is 0, right click on the "EnableExtensions", select "Modify" and change the value data to 1, then click OK, then close regedit.
Imho, despite what the author says, I would NOT use PowerShell for running or creating your Python code (or C, C++, Fortran, or anything other than PS). It is not designed for that, plain and simple. PowerShell is, basically, it's own scripting language and is designed to work specifically with Windows.
I don't know why the author is even broaching this subject, since you will never make a direct call to a command like "mkdir" without using a library like "subcommand".
If your new to Python, I would recommend trying several of the excellent IDE's out there (a good place to start is here
Python IDE's) and pick one that you feel comfortable with.
Quote:Also, in both cmd.exe and PS, / is automatically converted to \. Is there any reason to stick to only typing /?
Python likes "/" :)
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition