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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started