Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

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-12-02T17:20:58
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></span><span id="L-1"><a name="L-1"></a><span class="k">start</span> <span class="s2">&quot;&quot;</span> [/wait] 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-12-02T21:22:20
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></span><span id="L-1"><a name="L-1"></a><span class="k">set</span> <span class="k">/p</span> <span class="nv">myvar</span><span class="p">=</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-12-02T17:21:01
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></span><span id="L-1"><a name="L-1"></a><span class="k">if</span> <span class="nv">%var%</span> <span class="o">==</span> 1 <span class="p">(</span> </span><span id="L-2"><a name="L-2"></a> <span class="p">:</span><span class="c1">:do stuff</span> </span><span id="L-3"><a name="L-3"></a><span class="p">)</span> </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-12-02T17:21:05
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></span><span id="L-1"><a name="L-1"></a><span class="p">@</span><span class="k">echo</span> off </span><span id="L-2"><a name="L-2"></a><span class="k">copy</span> <span class="nv">%1</span> <span class="s2">&quot;C:\Dokumente und Einstellungen\spzb49e\Desktop\</span><span class="nv">%~nx1</span><span class="s2">.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 "[email protected]&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-12-02T17:21:07
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></span><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="k">/f</span> <span class="s2">&quot;tokens=1&quot;</span> <span class="se">%%</span>a <span class="k">in</span> <span class="p">(</span><span class="s1">&#39;cscript //nologo month.vbs&#39;</span><span class="p">)</span> <span class="k">do</span> <span class="k">set</span> <span class="nv">month</span><span class="p">=</span><span class="se">%%</span>a </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> /c ipm.note /m <span class="s2">&quot;[email protected]&amp;subject=Zeiterfassung </span><span class="nv">%month%</span><span class="s2"> 2012&amp;body=Hoi Irene Meine Zeiterfassung vom </span><span class="nv">%month%</span><span class="s2"> 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-12-02T17:21:09
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></span><span id="L-1"><a name="L-1"></a>cscript //NoLogo //B my.vbs </span></pre></div> </td></tr></table>
cmd, run
Copyrighted, illegal, or inappropriate content? Email [email protected].