snipt

Ctrl+h for KB shortcuts

Batchfile

CMD – Run Program

start "" [/wait] test.exe [params]
https://snipt.net/embed/d450ec056220b52ea94da6842f09903e/
https://snipt.net/raw/d450ec056220b52ea94da6842f09903e/
d450ec056220b52ea94da6842f09903e
bat
Batchfile
1
2016-09-27T13:19:06
True
False
False
Oct 31, 2012 at 09:04 AM
/api/public/snipt/49364/
cmd-run-program
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>start <span class="s2">&quot;&quot;</span> [<span class="n">/wait]</span> test.exe [params] </span></pre></div> </td></tr></table>
cmd, run

Batchfile

CMD – User Input

set /p myvar=
https://snipt.net/embed/4880abea988d9a75e1242902f9b38743/
https://snipt.net/raw/4880abea988d9a75e1242902f9b38743/
4880abea988d9a75e1242902f9b38743
bat
Batchfile
1
2016-09-29T23:21:23
True
False
False
Oct 30, 2012 at 08:28 AM
/api/public/snipt/49319/
cmd-user-input
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="k">set</span> <span class="n">/p</span> myvar<span class="o">=</span> </span></pre></div> </td></tr></table>
cmd, input

Batchfile

CMD – If

1
2
3
if %var% == 1 (
	::do stuff
)
https://snipt.net/embed/14f70e02fb0705990db0f46d98b3c052/
https://snipt.net/raw/14f70e02fb0705990db0f46d98b3c052/
14f70e02fb0705990db0f46d98b3c052
bat
Batchfile
3
2016-09-22T13:29:45
True
False
False
Oct 30, 2012 at 08:27 AM
/api/public/snipt/49318/
cmd-if
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="k">if</span> <span class="nv">%var%</span> <span class="o">==</span> <span class="m">1</span> ( </span><span id="L-2"><a name="L-2"></a> <span class="c">::do stuff</span> </span><span id="L-3"><a name="L-3"></a>) </span></pre></div> </td></tr></table>
cmd

Batchfile

CMD – Convert to *.txt

@echo off
copy %1 "C:\Dokumente und Einstellungen\spzb49e\Desktop\%~nx1.txt"
https://snipt.net/embed/9195f56ba5b8150701228b9a0d4f4377/
https://snipt.net/raw/9195f56ba5b8150701228b9a0d4f4377/
9195f56ba5b8150701228b9a0d4f4377
bat
Batchfile
2
2016-09-29T03:06:01
True
False
False
Oct 29, 2012 at 03:26 AM
/api/public/snipt/49243/
cmd-convert-to-txt
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="p">@</span><span class="k">echo</span> <span class="k">off</span> </span><span id="L-2"><a name="L-2"></a>copy <span class="nv">%1</span> <span class="s2">&quot;C:\Dokumente und Einstellungen\spzb49e\Desktop\%~nx1.txt&quot;</span> </span></pre></div> </td></tr></table>
cmd, coding

Batchfile

CMD – PVComp Zeiterfassung

1
2
3
4
5
cd C:\ascripts

for /f "tokens=1" %%a in ('cscript //nologo month.vbs') do set month=%%a

"C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE" /c ipm.note /m "irene.sutter@pvcomp.ch&subject=Zeiterfassung %month% 2012&body=Hoi Irene Meine Zeiterfassung vom %month% ist komplett. Gruess Pascal"
https://snipt.net/embed/66bcba8cc7ab1967f3201df2f5a50d2a/
https://snipt.net/raw/66bcba8cc7ab1967f3201df2f5a50d2a/
66bcba8cc7ab1967f3201df2f5a50d2a
bat
Batchfile
5
2016-09-26T01:45:19
True
False
False
Oct 28, 2012 at 07:14 PM
/api/public/snipt/49230/
cmd-pvcomp-zeiterfassung
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="k">cd</span> C:\ascripts </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="k">for</span> <span class="n">/f</span> <span class="s2">&quot;tokens=1&quot;</span> <span class="nv">%%a</span> in (<span class="s1">&#39;cscript //nologo month.vbs&#39;</span>) <span class="k">do</span> <span class="k">set</span> <span class="nv">month</span><span class="o">=</span><span class="nv">%%a</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="s2">&quot;C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE&quot;</span> <span class="n">/c</span> ipm.note <span class="n">/m</span> <span class="s2">&quot;irene.sutter@pvcomp.ch&amp;subject=Zeiterfassung %month% 2012&amp;body=Hoi Irene Meine Zeiterfassung vom %month% ist komplett. Gruess Pascal&quot;</span> </span></pre></div> </td></tr></table>
cmd, pvcomp

Batchfile

CMD – Call VBScript

cscript //NoLogo //B my.vbs
https://snipt.net/embed/cc4342ed6d3dfbaf83ba102ad78d1afd/
https://snipt.net/raw/cc4342ed6d3dfbaf83ba102ad78d1afd/
cc4342ed6d3dfbaf83ba102ad78d1afd
bat
Batchfile
1
2016-09-29T21:15:00
True
False
False
/api/public/snipt/49224/
cmd-call-vbscript
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>cscript <span class="n">//NoLogo</span> <span class="n">//B</span> my.vbs </span></pre></div> </td></tr></table>
cmd, run
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.