There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
DOS/PDA/Other
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
DOS Question


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
prodsupptech's Avatar
Senior Member with 271 posts.
 
Join Date: Feb 2004
Experience: Pretty Savvy
13-Nov-2006, 01:41 PM #1
DOS Question
I want to do a directory listing to a .txt file. My results however I want to be displayed as a full path to the files with extension. long story short if one.txt is in the 1111111 ABC\Here\ directory I want the results from my dir to say
1111111\ABC\Here\one.txt instead of having the two results panes
Dan Penny's Avatar
Senior Member with 405 posts.
 
Join Date: Mar 2005
Location: Alberta - Canada
Experience: Enough
14-Nov-2006, 11:21 AM #2
dir/a/o/s>cdirtxt.txt

will give you all files/dirs in the ~starting or originating~ directory and all it's sub dirs.

e.g. (Please note that the original output has been "scrunched up" in the posting here)

Volume in drive C is XP Home
Volume Serial Number is C460-01CD

Directory of C:\

11/06/2006 01:24 PM <DIR> ATI
11/06/2006 12:15 PM 0 AUTOEXEC.BAT
11/06/2006 12:07 PM 211 BOOT.BAK
11/14/2006 10:24 AM 281 boot.ini
11/06/2006 06:07 PM <DIR> cmdcons
02/28/2006 07:00 AM 260,272 cmldr
11/06/2006 12:15 PM 0 CONFIG.SYS
11/14/2006 11:14 AM 0 dirtext.txt
11/06/2006 04:09 PM <DIR> Documents and Settings
11/14/2006 10:20 AM 402,182,144 hiberfil.sys
11/08/2006 12:26 PM <DIR> INSTALL
11/06/2006 12:15 PM 0 IO.SYS
11/04/2006 02:05 PM 112 manage.bat
11/06/2006 12:15 PM 0 MSDOS.SYS
02/28/2006 07:00 AM 47,564 NTDETECT.COM
02/28/2006 07:00 AM 250,032 ntldr
11/14/2006 10:20 AM 805,306,368 pagefile.sys
11/06/2006 01:33 PM 3,843 PCcheck.LOG
11/13/2006 05:06 AM <DIR> Program Files
11/06/2006 01:20 PM <DIR> RECYCLER
11/09/2006 12:11 AM <DIR> System Volume Information
11/08/2006 12:26 PM <DIR> THNKTHES
11/13/2006 03:36 AM <DIR> WINDOWS
14 File(s) 1,208,050,827 bytes

Directory of C:\ATI

11/06/2006 01:24 PM <DIR> .
11/06/2006 01:24 PM <DIR> ..
11/06/2006 01:31 PM <DIR> support
0 File(s) 0 bytes

Directory of C:\ATI\support

11/06/2006 01:31 PM <DIR> .
11/06/2006 01:31 PM <DIR> ..
11/06/2006 01:31 PM <DIR> dvd-5-0
11/06/2006 01:29 PM <DIR> MMC_7_2_noDVD
11/06/2006 01:24 PM <DIR> WXP_R128_6_13_3279
0 File(s) 0 bytes

Directory of C:\ATI\support\dvd-5-0

11/06/2006 01:31 PM <DIR> .
11/06/2006 01:31 PM <DIR> ..
12/04/2001 05:44 PM 1,451,758 data1.cab
12/04/2001 05:45 PM 84,626 data1.hdr
12/04/2001 05:45 PM 10,538,524 data2.cab
03/25/2002 09:21 AM 4,201 dvd-5-0.rtf
10/05/2000 05:11 PM 339,565 ikernel.ex_
12/04/2001 06:52 PM 380 Install.ini
12/04/2001 05:45 PM 443 layout.bin
12/10/2001 05:09 PM 8,963 README.wri
05/16/2000 03:37 PM 46,080 Setup.exe
12/04/2001 05:43 PM 135 Setup.ini
12/04/2001 05:43 PM 186,966 setup.inx
11 File(s) 12,661,641 bytes

Directory of C:\ATI\support\MMC_7_2_noDVD

11/06/2006 01:29 PM <DIR> .
11/06/2006 01:29 PM <DIR> ..
11/26/2001 11:37 AM 1,169,905 data1.cab
11/26/2001 11:38 AM 95,820 data1.hdr
11/26/2001 11:38 AM 16,349,551 data2.cab
09/12/2001 12:47 PM 340,866 ikernel.ex_
11/22/2001 03:52 PM 382 Install.ini
11/26/2001 11:38 AM 443 layout.bin
10/24/2001 11:11 AM 6,506 MMC_7_2_noDVD.rtf
05/16/2000 03:37 PM 46,080 Setup.exe
11/26/2001 11:37 AM 156 Setup.ini
11/22/2001 02:58 PM 171,062 setup.inx
10 File(s) 18,180,771 bytes
__________________
It's a good day when you learn something
prodsupptech's Avatar
Senior Member with 271 posts.
 
Join Date: Feb 2004
Experience: Pretty Savvy
14-Nov-2006, 02:02 PM #3
Needed it to be the full path in one directory listings. No worries I'm just going to write a script to do it. thanks for your help
JohnWill's Avatar
Computer Specs
Moderator with 77,380 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
14-Nov-2006, 02:02 PM #4
I think he wants a completely qualified file name for every file. That will require something besides DIR.
Squashman's Avatar
Distinguished Member with 12,598 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
14-Nov-2006, 07:23 PM #5
The only way I would know how to do it is to use Karen's Directory Printer.
http://www.karenware.com/powertools/ptdirprn.asp

I don't know of any DOS Utilities that will do it.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:11 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.