Quantcast
Channel: Create a python file using cmd in windows - Stack Overflow
Viewing all articles
Browse latest Browse all 12

Answer by Atharva Date for Create a python file using cmd in windows

$
0
0

To create a new python file in your current working directory(cwd) use the following command in your terminal:-type NUL > 'test.py'

1.Here I have created a new python file named "test".....Here 'NUL' stands for an emptyfile.

2.In above command you can use any name that you want.....but be careful to mention theextension,like in our case(.py).

3.Using this command you can create new file of any type in your cwd.

4.After typing this command.....cmd might prompt an error.....but check in yourdirectory....there will be a new file present.


Viewing all articles
Browse latest Browse all 12

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>