Question: The syntax of the command is incorrect. 'touch' is not recognized as an internal or external command, operable program or batch file. 'cp' is not

The syntax of the command is incorrect. 'touch' is not recognized as an internal or external command, operable program or batch file. 'cp' is not recognized as an internal or external command, operable program or batch file. 'ls' is not recognized as an internal or external command, operable program or batch file.

import os os.system('mkdir Desktop/MyPythonFiles') os.system('touch Desktop/MyPythonFiles/python.txt') os.system('cp Desktop/MyPythonFiles/python.txt Documents/') os.system('ls -ltr Documents/')

need help to get this to work

Create a folder on your desktop and name it "MyPythonFiles".

Use the Copy command to copy the file from your desktop to your documents folder.

Provide the code for this as well as the screen shots of the desktop and then the documents folder with the new file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!