Tech Support > Computers & Technology > Any DOS Experts Out There??
Any DOS Experts Out There??
Posted by Sens Fan Happy In Ohio on May 2nd, 2004


I used to remember a DOS command that you could do to create a text file of
any directory on your hard disk drive. But now that I can make good use of
it, I can't for the life of me remember the entire string! Here's my
situation.

I'm trying to create a text file of one file folder on my hard drive inside
the DOS command window in Win XP Pro. The directory I want is on my F-drive
and I want to place the text file on my C-drive. As I recall the command
started something like:

F:>dir F:\SIMS\Skins\Comics/s

Then after that /s is where you tell DOS to create a text file on your
C-drive like C:\list.txt

But there's a step between the /s and the C:\list.txt that I can't recall.
Can any DOS expert out there help me remember this little command?!?!

--
Kyle

Reply address is fake. Please send all praise, abuse, insults, bequests of
$1million US dollars to sensfan_luvslisa (at) yahoo (dot) ca. Change the
obvious to the obvious. Oh, and if you must abuse or insult, don't expect a
reply. Money gets faster attention ;o)


Posted by Toolman Tim on May 2nd, 2004


it's a "redirect" - add this to the end of your line: "> dirfile.txt"
without the quotes, of course

dir F:\SIMS\Skins\Comics/s > dirfile.txt

of course, you may want to specifiy where to put the dirfile.txt or use a
different name.


"Sens Fan Happy In Ohio" <GoingForTheCup@GoSensGo.com> wrote in message
news:109ag7u1f3icr05@news.supernews.com...


Posted by Palindr☻me on May 2nd, 2004


Sens Fan Happy In Ohio wrote:


Dir f:\whatever > c:\whatever_next




Posted by Unk on May 2nd, 2004


On Sun, 2 May 2004 14:42:24 -0400, "Sens Fan Happy In Ohio"
<GoingForTheCup@GoSensGo.com> wrote:

text file to be created.

F:>dir F:\SIMS\Skins\Comics/s>c:\list.txt


Posted by Sens Fan Happy In Ohio on May 2nd, 2004


In news:109agl8fd4fhj2f@corp.supernews.com, Toolman Tim
<tmayer541_at_charter.invalid> first attempted to communicate with pen, but
the writing was small, so next used sidewalk chalk, but the rain washed it
away, and then switched to spray paint and stencils but the cans exploded,
so placed fingers to keyboard for this:
Thanks Tim ... I got it to work once you reminded me about the > or
"redirect" that was missing

--
Kyle

Reply address is fake. Please send all praise, abuse, insults, bequests of
$1million US dollars to sensfan_luvslisa (at) yahoo (dot) ca. Change the
obvious to the obvious. Oh, and if you must abuse or insult, don't expect a
reply. Money gets faster attention ;o)



Posted by Palindr☻me on May 2nd, 2004


Toolman Tim wrote:

So quick, so accurate, (so kind to dumb animals?) Keep up
the good work and , btw, you any good at dealing with inlaws?




Posted by Martik on May 2nd, 2004


And dir >> x.ls if you want to append to an existing file


Posted by Toolman Tim on May 2nd, 2004



"Sens Fan Happy In Ohio" <GoingForTheCup@GoSensGo.com> wrote in message
news:109agrtoav4pq34@news.supernews.com...
You're welcome! Something else to consider would be the Windows utilities
that do the same and format nicely too. You'd have to search this
newsgroup's archives - I think the topic was covered extensively a week or
two back.



Posted by Toolman Tim on May 2nd, 2004



"Palindrâ~»me" <sb382638@hotmail.com> wrote in message
news:c73gmg$hqqu5$1@ID-184954.news.uni-berlin.de...
I'm great with animals (www.tmayer.us) but inlaws? Now that's a sour
subject...



Posted by M on May 2nd, 2004


To print folder listings

Create the following file in notepad and save as Print.bat in the windows
folder.

@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit

Go to Explorer => Tools => Folder Options => File Types. Scroll down and
select "File Folder". Click on advances or Edit (depending on your version
of Windows) and Type a name for the action "Print Folder Contents". In the
application used box type Print.bat.

You will now find when you right click a folder that Print Folder Contents
has been added to the right click menu.

"Sens Fan Happy In Ohio" <GoingForTheCup@GoSensGo.com> wrote in message
news:109ag7u1f3icr05@news.supernews.com...


Posted by Richard on May 3rd, 2004



"Toolman Tim" <tmayer541_at_charter.invalid> wrote in message
news:109agl8fd4fhj2f@corp.supernews.com...
It's not a redirect. DOS uses two part commands.
The > tells DOS to print the output to a file rather than to a screen.




Posted by Toolman Tim on May 3rd, 2004



"Richard" <Anonymous@127.001> wrote in message
news:c745f7011l7@news1.newsguy.com...
You, dumbshit, should go RTFM...it is NOT a two part command, it is a
redirect. I bet you don't know a pipe or a filter from something you smoke.





Similar Posts