djo7613@blake.acs.washington.edu (Dick O'Connor) (05/25/89)
Incredible!! One simple question about getting a printed listing of all files and their sizes in all hard disk subdirectories, and I get ELEVEN responses overnight! Thank you, each one of you, for your helpful contributions! In keeping with the general individuality of the net, I received 9 different responses from 11 people. I've summarized all of the contributions below. Three people sent uuencoded programs that would do the trick, but I've deleted them to save bandwidth. Email them directly if you'd like a copy, or check with me, as I'll probably keep them around. The simplest solution is a 591 byte PD utility published in PC Magazine called SWEEP. I tried it, and it does just exactly what I want. But now I'm intrigued by these other solutions, so I may take a little time to explore a bit before I get down to the task of Hard Disk File Maintenance! -Dick O'Connor Washington Department of Fisheries djo7613@blake.acs.washington.edu ********************************************************************** Get the PICNIX 3.0 shareware package from SIMTEL20 (three ARC files in PD1:<MSDOS.SYSUTL>, called PICNIX3[1-3].ARC). Then use this command: ls /lR \ The PICNIX "ls" command is essentially the same as the Berkeley UNIX command, except that (1) it uses the DOS "/" switch character, and (2) you don't normally use the "s" flag, since in the PICNIX "ls" it sorts files by size. -- Rich Wales // UCLA Computer Science Department // +1 (213) 825-5683 3531 Boelter Hall // Los Angeles, California 90024-1596 // USA wales@CS.UCLA.EDU ...!(uunet,ucbvax,rutgers)!cs.ucla.edu!wales "Indeed! Twenty-four is the gateway to heroic salvation." ********************************************************************** If you have the PC-Magazine utilities, type: sweep dir from the root directory of the disk. I can mail you this utility if you like; tell me what kind of archives you would prefer (zoo, zip, arc, lzh). Bob Posert I'm: posert@bonnie.ics.uci.edu or {sdcsvax|ucbvax}!ucivax!bonnie!posert ********************************************************************** The Norton Utilities program called "FF" (for "File Find") will do it handily. If you don't have NU, Vernon Buerg has programs for everything, all available for free (freeware, not shareware). In particular, LDIR30 does what you want, and can be downloaded from SIMTEL20.ARPA as PD1:<MSDOS.DIRUTL>LDIR30.ARC (I use LDIR31, but I don't know if Simtel has it.) When you FTP to Simtel, set the mode to TENEX, as the file is compressed. The only drawback to the program is that the output isn't in a fancy format: Directory entries differ from file entries only by having "Dir" next to them. I'd send you LDIR31, but I don't have a UUencode program. Good luck. -- --Irv +--------------------------------------------------------------------------+ | uucp: {backbone}!rutgers!aramis.rutgers.edu!irv | | arpa: irv@aramis.rutgers.edu phone: (201)932-2002 | | mail: Irving N. Rabinowitz, Department of Computer Science, | | Rutgers University, New Brunswick, NJ 08903 | +--------------------------------------------------------------------------+ ********************************************************************** Dick- Here is a copy of PKFIND- a file finder program from Katz. To list your entire hard disk type "PKF /nc *.*". Will give path of each file, size, and date and time. <uuencoded file deleted> Ray Berry KB7HT uucp: ...uw-beaver!sumax!quick!ole!ray CS 73407,3152 Seattle Silicon Corp. 3075 112th Ave NE. Bellevue WA 98004 (206) 828 4422 ********************************************************************** There is a PD program called SWEEP which will recursively execute a DOS command throughout a directory tree, so you could do something like SWEEP DIR > PRN and get a listing like you want on the printer. I don't have source, but could E-mail the executable file. What's the best way for you -- UUENCODED binary? Al Stangenberger Dept. of Forestry & Resource Mgt. forags@violet.berkeley.edu 145 Mulford Hall - Univ. of Calif. uucp: ucbvax!ucbviolet!forags Berkeley, CA 94720 BITNET: FORAGS AT UCBVIOLE (415) 642-4424 ********************************************************************** If you had the MKS toolkit, you could just enter the command ls -lR / This is not meant as a taunt, but just as an indication of how useful the toolkit really is. Of course, I start by looking at directory sizes by doing du / I hope you find something --- but in the long run the Toolkit will pay for itself many times over. \tom haapanen tom@mims-iris.UWaterloo.CA watmims research group university of waterloo "Now, you didn't really expect my views to agree with my employer's, did you?" ********************************************************************** I don't know of an easy way to do what you want using MS-DOS commands, but if you like, I can send you a unix-like "ls" program that can do directory tree recursion; it can even generate a list of all files on the disk sorted by file- size which makes it easy to find the big disk wasters fast. Mark Armbrust maa@nbires.nbi.com maa@nbires.UUCP ********************************************************************** What works best for us is to use the program Diskover (available on BBSs as shareware or in a commercial version). This program not only produces very nice diskette inserts (including subdirectory contents if you use subdirectories on floppies), but -- it also produces beau- tiful listing of all hard disk files, including date, time, and size, in a double column listing that is compact and printed in compressed type. (Caleb Computer Consultants, RD 3, 417 Larsen Rd., Ringoes, NJ 08551, 201 788 1846) The shareware version is on most BBSs. M Volow, VA Medical Center, Durham, NC 27705 mvolo@ecsvax.UUCP 919 286 0411 ********************************************************************** Dick, Talk about fortuitous timing. I had just finished roughing out the code for such a utility when I read your post. So I enclosing it, in uuencoded format. A couple of words are in order about the utility. It uudecodes to 'disklist.exe'. Usage is simple: run it on any volume, and it will output the info to standard out. use a line like: disklist > list.out to capture the info in a file. This version is somewhat crude; no sorting. This weekend I plan to allow for sorting by name, extension, and size within each directory. Additionally, I will add the output of just sorted files, with no directory info. But hey, it only took me 3 hours ;-). Notice it has no copyrights. It will be part of the next version of my shareware disk management package, Navstar. I'll include a plug for the package here: (this is the file I upload to BBS's) Take a look at Navstar 1.1, uploaded as NAV11.ARC/NAV11.ZIP. Navstar is a file manager with a difference. Whereas most such managers "protect" the user from DOS, Navstar allows the user to use his/her intimate knowledge of DOS to the fullest. Navstar performs all of the normal functions associated with file managers, such as Copy, Rename, Move, Delete, Attrib, etc. It supports a shorthand method of changing directories. It also has some real productivity enhancers such as a rich set of commands to execute other programs, including file extension recognition (15) and definable keys (22). A full installation program allows the user to preset things such as color, sort order and method, keys, extensions, etc. Since Navstar was designed to run other programs from within itself, it occupies as little as 8k of your precious RAM. Take a look!!!! I hope Disklist is of some use. If you have questions, let me know. Have fun!!! C. Schanck <uuencoded file deleted> See Mom, I can prove that cleaning my apartment is unsolvable by doing a reduction from the National Deficit problem, which is obviously unsolvable! Christopher Schanck (schanck@cis.ohio-state.edu) ********************************************************************** I don't know of one within DOS, so I rewrote the VTREE utilitly that PCmagazine published a long time ago to optionally do this. Here's a uuencoded archive of my effort. Feel free to distribute it as you wish. Duncan Murdoch <dmurdoch@watstat.waterloo.edu> <uuencoded file deleted> ********************************************************************** I don't know if your DOS "tricks" books have SWEEP, but if they do, it will do quite nicely. SWEEP is a utility from PC Magazine. It will operate on the current directory, and all subdirectories (or the target directory and all of its subdirectories). It separates the output for each subdirectory with the name of the subdirectory. What you would then want to do is type from the root directory something like: SWEEP DIR > LPT1: which would re-direct all the output to the printer (assumed to be parallel port 1). You could, of course, redirect to a file. Or not do any redirection if you want to check the kind of output you'll get before going further. If you can't find SWEEP (it's probably on SIMTEL20, but PC Magazine stuff is listed by the Volume and Issue, not by what's in the archive), I can uuencode and email you a copy. Paul Gomme E-Mail: Department of Economics University of Western Ontario Bitnet: gomme@uwovax.bitnet London, Ontario, Canada gomme@uwovax.uwo.ca N6A 5B7 ARPA: gomme@uwo.ca (519) 679-2111 ext. 6418