<p>An easy way to replace the touch command on a windows command line like cmd would be:</p>
<pre><code class="lang-auto">type nul > your_file.txt
</code></pre>
<p>This will create 0 bytes in the <code>your_file.txt</code> file.</p>
<p>This would also be a good solution to use in windows batch files.</p>
<p>Another way of doing it is by using the <a href="https://technet.microsoft.com/en-us/library/bb490897.aspx">echo</a> command:</p>
<pre><code class="lang-auto">echo.> your_file.txt
</code></pre>
<p>echo. - will create a file with one empty line in it.</p>
<p>If you need to preserve the content of the file use <code>>></code> instead of <code>></code></p>
<pre><code class="lang-auto">> Creates a new file
Preserves content of the file
</code></pre>
<p>Example</p>
<pre><code class="lang-auto">type nul >> your_file.txt
</code></pre>
<p>You can also use <a href="https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/call">call</a> command.</p>
<p>Calls one batch program from another without stopping the parent batch program. The call command accepts labels as the target of the call.</p>
<p>Example:</p>
<pre><code class="lang-auto">call >> your_file.txt
</code></pre>