Asked 6 years ago
29 Aug 2017
Views 906
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 Nov 30 '-1 00:00

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

Post Answer