Step 9> Parameter (1/2)
Its syntax is:
Command>FilenameOk, so let's say we're in a certain directory. We then use the DIR Command, which, if you read the Basics of Batch, you would know as showing the contents of your current directory.
C:\Users\Neo\>DIRWould normally output:
Volume in drive C is HP Volume Serial Number is BC7E-E26C Directory of C:\Users\Neo06/30/2007 11:14 AM <DIR> .06/30/2007 11:14 AM <DIR> ..03/17/2007 06:41 PM <DIR> .idlerc02/19/2007 03:14 PM <DIR> Contacts06/19/2007 10:44 PM <DIR> Desktop06/29/2007 08:47 AM <DIR> Documents06/19/2007 10:35 AM <DIR> Downloads02/19/2007 03:14 PM <DIR> Favorites02/19/2007 03:14 PM <DIR> Links05/12/2007 04:01 PM <DIR> Music06/30/2007 01:20 AM <DIR> Pictures04/07/2007 03:08 PM <DIR> Saved Games02/19/2007 03:14 PM <DIR> Searches03/01/2007 07:23 PM 242,947 Test Record.wma06/19/2007 10:39 AM <DIR> Videos06/18/2007 09:57 AM 1,324,574 wp_screenprint_mc.pdf06/18/2007 09:59 AM 73,996,533 wp_tshirt_full.mp4 4 File(s) 75,564,054 bytes 14 Dir(s) 132,927,537,152 bytes freeBut, if we add the > and to it...
C:\Users\Neo\DIR>DIRContents.txtWe don't get an output, but instead, we get a brand-spankin'-new Text File named DIRContents.txt which has the Output in it! Coolness!
But wait, there's a problem! I want to have multiple outputs in the same file, but my > just keeps overwriting it, and not adding it! What do I do?
| « Previous Step | Download PDFView All Steps | Next Step » |



















































cd..
cd..
cd..
cd..
dir /s