Asked 30+ days ago
29 Aug 2017
Views 136
jaggy

jaggy posted

how to create new file with command line in window ?

at command prompt , how an i create new file by command in window 7 ?
i am linux user i mostly use gedit , but now what is command similar gedit in window so i can create file by command
Mitul Dabhi

Mitul Dabhi
answered Jan 21 '18 20:17

use echo command to create new file in window operating system

echo "some text you want to place in file" > filename


for example

echo hello  > hello.php

will create hello.php

OR


echo ""  >  hello.php

Edit Answer
Share
Post Answer