<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/cmd</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 19 Jun 2013 23:41:57 GMT</pubDate>
<item>
<title>(DOS Batch) cygwin open explorer window in current directory - peterlubczynski</title>
<link>http://snipplr.com/view/54614/cygwin-open-explorer-window-in-current-directory/</link>
<description><![CDATA[ <p>Just run at the prompt cygwin bash $ cmd.exe /c start .</p> ]]></description>
<pubDate>Tue, 31 May 2011 03:44:06 GMT</pubDate>
<guid>http://snipplr.com/view/54614/cygwin-open-explorer-window-in-current-directory/</guid>
</item>
<item>
<title>(AppleScript) Applescript function - send CMD Command down key plus a letter keystroke - brandonjp</title>
<link>http://snipplr.com/view/50928/applescript-function--send-cmd-command-down-key-plus-a-letter-keystroke/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 22 Mar 2011 02:06:21 GMT</pubDate>
<guid>http://snipplr.com/view/50928/applescript-function--send-cmd-command-down-key-plus-a-letter-keystroke/</guid>
</item>
<item>
<title>(Windows PowerShell) Copy files tree except some subfolders - AlexLocust</title>
<link>http://snipplr.com/view/46288/copy-files-tree-except-some-subfolders/</link>
<description><![CDATA[ <p>Content of exclude file:
one exclude pattern per line. For me it contains single line:
.svn</p> ]]></description>
<pubDate>Thu, 30 Dec 2010 19:42:32 GMT</pubDate>
<guid>http://snipplr.com/view/46288/copy-files-tree-except-some-subfolders/</guid>
</item>
<item>
<title>(Windows PowerShell) Windows DIR - List only the filenames of all files in a directory - theonlyalterego</title>
<link>http://snipplr.com/view/42589/windows-dir--list-only-the-filenames-of-all-files-in-a-directory/</link>
<description><![CDATA[ <p>I found this today and don't want too lose it. In windows the following command will create a text file named fileListing.txt which will contain a list of all the files in the current directory ( including fileListing.txt )</p> ]]></description>
<pubDate>Wed, 20 Oct 2010 07:36:35 GMT</pubDate>
<guid>http://snipplr.com/view/42589/windows-dir--list-only-the-filenames-of-all-files-in-a-directory/</guid>
</item>
<item>
<title>(Other) Windows CMD open at specific location - dorseye</title>
<link>http://snipplr.com/view/32198/windows-cmd-open-at-specific-location/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 17 Apr 2010 23:35:42 GMT</pubDate>
<guid>http://snipplr.com/view/32198/windows-cmd-open-at-specific-location/</guid>
</item>
<item>
<title>(Bash) Howto run Tidy from the command line - noah</title>
<link>http://snipplr.com/view/27758/howto-run-tidy-from-the-command-line/</link>
<description><![CDATA[ <p>This shell command will retrieve a Web page and validate the HTML with [Tidy, the HTML linter from the W3](http://tidy.sourceforge.net/).  You can get an **XHTML validation** report right in your shell prompt, just like you'd get from the [Firefox extension](https://addons.mozilla.org/en-US/firefox/addon/249) or the [Web service.](validator.w3.org/).  It's especially helpful when you need to **validate HTML on your intranet, or behind a firewall.**

### **NOTE: Curl does not follow redirects by default!**

By default, Curl retrieves *exactly* the URL you specify. The `-L` option causes Curl to follow redirects just like a Web browser would.

### **NOTE: Tidy produces a lot of output!**


Windows users should make sure their [command prompt screen buffer height is set to 9999](http://www.codinghorror.com/blog/archives/000334.html 'command prompt tips from Coding Horror') so that you don't "lose" any output.


### **Explanation of the command line options**

`curl -L` tells Curl to fo**LL**ow HTTP redirects

`curl -s` **S**uppresses Curl's annoying progress bar

`tidy -e` tells Tidy not to **E**mit the tidied HTML to the console

`tidy -q` tells Tidy to be **Q**uiet, instead of printing extra crap at the bottom of the report

### **Dependencies**

Curl and Tidy are installed via the [Cygwin setup.exe](http://cygwin.com/)

Alternately, Perl hackers could use [lwp-request](http://search.cpan.org/~gaas/libwww-perl-5.808/bin/lwp-request).

### **Doing more**

[Validate HTML with a stricter algorithm,](http://snipplr.com/view/4130/check-linked-pages-for-tidy-validation-errors-on-the-command-line/) using the OpenJade SGML parser.

[Validate linked pages](http://snipplr.com/view/4130/check-linked-pages-for-tidy-validation-errors-on-the-command-line/) with Tidy and lwp-request.</p> ]]></description>
<pubDate>Fri, 05 Feb 2010 12:41:54 GMT</pubDate>
<guid>http://snipplr.com/view/27758/howto-run-tidy-from-the-command-line/</guid>
</item>
<item>
<title>(Other) Command to Extract the Contents of an MSI File to a Folder - rengber</title>
<link>http://snipplr.com/view/27182/command-to-extract-the-contents-of-an-msi-file-to-a-folder/</link>
<description><![CDATA[ <p>note, MSIExec /? will launch a dialog box with switch documentation.</p> ]]></description>
<pubDate>Wed, 27 Jan 2010 12:21:41 GMT</pubDate>
<guid>http://snipplr.com/view/27182/command-to-extract-the-contents-of-an-msi-file-to-a-folder/</guid>
</item>
<item>
<title>(Ruby) execute command and get cmd results - ogrellk</title>
<link>http://snipplr.com/view/21677/execute-command-and-get-cmd-results/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 23 Oct 2009 03:39:45 GMT</pubDate>
<guid>http://snipplr.com/view/21677/execute-command-and-get-cmd-results/</guid>
</item>
<item>
<title>(C) getopt example - tandouri</title>
<link>http://snipplr.com/view/18637/getopt-example/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 21 Aug 2009 04:56:16 GMT</pubDate>
<guid>http://snipplr.com/view/18637/getopt-example/</guid>
</item>
<item>
<title>(C) checking command line arguments - tandouri</title>
<link>http://snipplr.com/view/18635/checking-command-line-arguments/</link>
<description><![CDATA[ <p>for checking the cmdargs</p> ]]></description>
<pubDate>Fri, 21 Aug 2009 04:33:53 GMT</pubDate>
<guid>http://snipplr.com/view/18635/checking-command-line-arguments/</guid>
</item>
<item>
<title>(PHP) Fork a process with PHP - ping_ch</title>
<link>http://snipplr.com/view/17622/fork-a-process-with-php/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 29 Jul 2009 10:56:28 GMT</pubDate>
<guid>http://snipplr.com/view/17622/fork-a-process-with-php/</guid>
</item>
<item>
<title>(JavaScript) Running JScript in a CMD File - mitry</title>
<link>http://snipplr.com/view/7485/running-jscript-in-a-cmd-file/</link>
<description><![CDATA[ <p>embed the JScript code in a .cmd file</p> ]]></description>
<pubDate>Fri, 25 Jul 2008 02:19:07 GMT</pubDate>
<guid>http://snipplr.com/view/7485/running-jscript-in-a-cmd-file/</guid>
</item>
<item>
<title>(Bash) Recursively unlock files in Mac OS X - wbowers</title>
<link>http://snipplr.com/view/5202/recursively-unlock-files-in-mac-os-x/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 25 Feb 2008 22:42:02 GMT</pubDate>
<guid>http://snipplr.com/view/5202/recursively-unlock-files-in-mac-os-x/</guid>
</item>
</channel>
</rss>