Sponsored Content
Special Forums Windows & DOS: Issues & Discussions List Contents of Drive by size Post 302279226 by pure_jax on Thursday 22nd of January 2009 06:41:01 AM
Old 01-22-2009
Question List Contents of Drive by size

I am having difficulty listing the contents of a specific disk drive including hidden files and folders by size on disk.

Its been a while since i have used dos and batch files in windows as am used to UNIX so was wondering if anybody could help me with this?

Regards,

Alan Jackson
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

How to a see the contents of my CD drive

in a Scoopen server station. In a windows based system you just go to mycomputer- and than double click the cd rom drive icon...simple....But i need to see the same but for a SCO open server....i want the same for a floppy drive tooo... By the way, i tried (scoadmin ) command but couldnt go... (1 Reply)
Discussion started by: BAM
1 Replies

2. UNIX for Dummies Questions & Answers

How to a see the contents of my CD drive

How to a see the contents of my CD drive in a Scoopen server station. In a windows based system you just go to mycomputer- and than double click the cd rom drive icon...simple....But i need to see the same but for a SCO open server....i want the same for a floppy drive tooo... By the way, i... (4 Replies)
Discussion started by: BAM
4 Replies

3. Shell Programming and Scripting

question on du for dire. size on tape and drive

Is there a method to see how much data is put on a tape? Or to check and see the size of what you are tarring to tape? I have a script that checks a partition and user's directories and excludes anything under a home/test directory and writes that to a text file, then I call tar and using that... (1 Reply)
Discussion started by: kymberm
1 Replies

4. SCO

Maximuim size hard drive in SCO 5.05

Does anyone remrmber what the maximum hard drive size is for SCO 5.0.5? Also, do I need to plug in the Cylinders/Heads/Sectors manually? I know in ver 5.0.7, you can go over 137GB. TiA (0 Replies)
Discussion started by: tbgeek
0 Replies

5. UNIX for Dummies Questions & Answers

list contents of directory

I want to list the contents of a directory, but I do not want to use the ls, is there another way?? (3 Replies)
Discussion started by: carl_vieyra
3 Replies

6. Shell Programming and Scripting

list files and contents

I have a group of getOSinfo.out files that I would like to list the filename and then its contents out to. I can do it for each one individually, but would prefer to do it all in one shot and have one large file that has all of the oslevels and filenames. I am not very handy with scripts, so I... (2 Replies)
Discussion started by: snakernetb
2 Replies

7. Solaris

reduce hard drive size

I'm trying to reduce hard drive size (number of cylinders) in SPARC Solaris. Its easy to change last cylinder of last slice, but that cannot be done for slice2/backupslice because it insists on whole disk. If I try to change disk type/geometry, all slices get replaced with some 'default'... (1 Reply)
Discussion started by: orange47
1 Replies

8. Shell Programming and Scripting

Copy contents of whatever's loaded into the CD drive

Hello everyone, I have about 1500 compact discs of seismic data that I need to retrieve and place onto the hard drive so that I can index and process them. The data was generated at 20 seismic stations and each disc has a been assigned unique name. The name is NOT necessarily what is on the... (7 Replies)
Discussion started by: ws6transam
7 Replies

9. AIX

max drive size for 7028 p Series

We have an eight year old IBM P series 7028 model server running AIX 5.2, and are thinking about installing some bigger drives. The current ones are 78GB in a RAID5 array. It looks like there are 146 and 300GB drives available. Just wondering what a realistic size drive to install would be that... (3 Replies)
Discussion started by: markper
3 Replies

10. Solaris

Possible to increase swap size for existing UFS-based drive slice?

I like to increase swap size for my current server running solaris 10. Seems like the system is not using it's full 16G of physical memory. #swap -l swapfile dev swaplo blocks free /dev/dsk/c0t0d0s1 32,1 16 1058288 1058288 # swap -s total: 4125120k bytes... (17 Replies)
Discussion started by: JT-KGY
17 Replies
mtools(1)						      General Commands Manual							 mtools(1)

NAME
mtools - Provides a collection of tools for manipulating DOS files DESCRIPTION
The mtools commands are a public domain collection of programs that let you read, write, and manipulate files on a DOS file system (typi- cally a diskette) from a UNIX system. Each command attempts to emulate the DOS equivalent command as closely as possible. The following commands are available: Converts a DOS file to UNIX Changes DOS file attribute options Changes or reports the DOS working directory Copies DOS files to and from a UNIX operating system Deletes a DOS file Displays contents of a DOS directory Copies a diskette to another diskette as a bit-image copy Adds a DOS file system to a low-level formatted diskette Creates a shell script to restore UNIX file names from DOS Labels a DOS volume Makes a DOS directory Removes a DOS directory Performs a low level read (copy) of a DOS file to UNIX Renames an exist- ing DOS file Displays the contents of a DOS file Performs a low level write (copy) of a UNIX file to DOS Converts a UNIX file to DOS format DOS file names optionally are composed of a drive letter followed by a colon, a subdirectory, and a file name. Subdirectory names can use either the '/' or '' separator. The use of the '' separator or wildcards requires the names to be enclosed in quotes to protect them from the shell. The regular expression "pattern matching" routines follow the UNIX rules. For example, an asterisk (*) matches all DOS files in place of asterisks separated by a dot (.) such as *.*. The archive, hidden, read-only and system attribute bits are ignored during pattern match- ing. Not all UNIX file names are supported in the DOS world. The mtools commands may have to change UNIX names to fit the DOS file name conven- tions. Most commands provide the verbose option (-v), that displays new file names if they have been changed. The following table shows some examples of file name conversions: ----------------------------------------------- UNIX name DOS name Reason for the change ----------------------------------------------- thisisatest THISISAT file name too long file.stuff FILE.STU extension too long prn.txt XRN.TXT PRN is a device name .abc X.ABC null file name hot+cold HOTXCOLD illegal character ----------------------------------------------- All options use the minus (-) option, not the slash (/) as provided under DOS conventions. The mcd command is used to establish the device and the current working directory (relative to the DOS file system), otherwise the default is assumed to be A:. All the mtools commands return 0 on success and 1 on complete failure. All mtools require a floppy diskette properly installed on the system. All mtools facilities address a device named /dev/disk/floppy, therefore, a symbolic link between the floppy device and /dev/disk/floppy is also required. RESTRICTIONS
If the proper device is not specified (when multiple disks capacities are supported), an error message from the device driver may be dis- played. This message can be ignored. EXAMPLES
If the diskette is a SCSI attached floppy drive designated device rz13, the following example sets up a floppy diskette for access by the mtools commands: # cd /dev # ./MAKEDEV disk/dsk13 You can then link the device to /dev/disk/floppy as follows: # ln -s /dev/rdisk/dsk/13c /dev/disk/floppy The following example sets up a floppy diskette for access by the mtools commands if the floppy drive is FDI attached: # cd /dev # ./MAKEDEV fd0 You can then link the device to /dev/disk/floppy as follows: # ln -s /dev/rfd0c /dev/disk/floppy The following example also sets up a SCSI attached floppy diskette for access by the mtools commands: # /usr/sbin/mknod /dev/rdisk/dsk13c c 8 21506 You can then link the device to /dev/disk/floppy as follows: # ln -s /dev/rdisk/dsk13c /dev/disk/floppy Remember to use the appropriate SCSI name and minor number for your configuration. In this example, this is dev/rdisk/dsk13c. Caution This method is recommended for use only by experienced system administrators. SEE ALSO
Commands: dos2unix(1), ln(1), mattrib(1), mcd(1), mcopy(1), mdel(1), mdir(1), mdiskcopy(1), mformat(1), mlabel(1), mmd(1), mrd(1), mread(1), mren(1), mtype(1), mwrite(1), unix2dos(1) Floppy disk interface: fd(7) Utilities: MAKEDEV(8), mknod(8) mtools(1)
All times are GMT -4. The time now is 03:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy