-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.

2 Answers2

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

Rhylionn
  • 77
  • 3
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
Udesh
  • 2,415
  • 2
  • 22
  • 32