07-23-2023, 09:32 AM
Try to create a .bat ot .cmd file with those lines using `doskey` key and `$T` which is equivalent to `&` to do several command line in just one line :
touch=echo off $T echo. ^> $* $T dir /B $T echo on
It'll create an empty file.
Example:
touch myfile
In cmd you'll get something like this:
[![enter image description here][1]][1]
But as mentioned previously by others, it is really advised to use `&` operator to do many command line in one line from CMD prompt.
Enjoy =)
[1]:
touch=echo off $T echo. ^> $* $T dir /B $T echo on
It'll create an empty file.
Example:
touch myfile
In cmd you'll get something like this:
[![enter image description here][1]][1]
But as mentioned previously by others, it is really advised to use `&` operator to do many command line in one line from CMD prompt.
Enjoy =)
[1]: