-2

When I try using the touch command I get an error saying:'touch' is not recognized as an internal or external command, operable program or batch file.

0

2 Answers 2

1

The touch command in only available on Unix based OS.

However, you can do the same on Windows by running:

type nul > your_file.py

Sign up to request clarification or add additional context in comments.

Comments

0

dont't use touch command for windows

use echo command with redirect operation use > to overwrite and >> to append

c:\Windows\path>echo "" > file.py

1 Comment

Well, this creates a file containing two quotation marks, a space and a line-break…

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.