Greensands | 15/04/2022 14:06:50 |
449 forum posts 72 photos | Hi - Anyone out there with a knowledge of the old DOS commands? I have a number of DOS files on my workshop computer (W98) having a file extension .CON which I would like to be able to display in date order. Reference to the manuals indicate that the generic command DIR *.CON can be modified by a /switch attribute which I can get working when using /p (to display one screen at a time) but have not been able to get the /d attribute working in order to display the files in date order. Any suggestions as to where I am going wrong?. |
Grindstone Cowboy | 15/04/2022 14:21:43 |
1160 forum posts 73 photos | dir *.con /od Edit - if you type any DOS command with the /? switch, it lists all available options e.g. dir /? Rob Edited By Grindstone Cowboy on 15/04/2022 14:23:27 |
SillyOldDuffer | 15/04/2022 14:24:10 |
10668 forum posts 2415 photos | Posted by Greensands on 15/04/2022 14:06:50:
... I have a number of DOS files on my workshop computer (W98) having a file extension .CON which I would like to be able to display in date order. Reference to the manuals indicate that the generic command DIR *.CON can be modified by a /switch attribute which I can get working when using /p (to display one screen at a time) but have not been able to get the /d attribute working in order to display the files in date order. Any suggestions as to where I am going wrong?. Microsoft changed DIR slightly with every release! This website seems to cover all the variations.
Try DIR *.CON /O:D or, to reverse the order DIR *.CON /O:-D /T controls which datetime is used by the sort if the default isn't what's wanted. TC=create; TA=last read; TW=last write Dave |
GordonH | 15/04/2022 14:37:45 |
64 forum posts 5 photos | Greensands, Open up a DOS Shell by typing "cmd" (without the " symbols) in the search window then press enter.. The Dos pop up window will open. Typing "Help " followed by any command name, will display format of the command and the switches which can be used. One useful switch that is not listed is the > character followed by a file name. This will divert the screen output into the named file, a very useful feature Gordon Below is an example from Windows 10, I added the last line to show the piping command:- C:\Users\gordo>help dir DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [drive:][path][filename] /A Displays files with specified attributes. Switches may be preset in the DIRCMD environment variable. Override C:\Users\gordo>help dir >help.txt Edited By GordonH on 15/04/2022 14:39:18 Edited By GordonH on 15/04/2022 14:41:03 |
Greensands | 15/04/2022 14:44:12 |
449 forum posts 72 photos | Yes, I now have success!. Many thanks GC and SOD |
Ady1 | 15/04/2022 17:24:15 |
![]() 6137 forum posts 893 photos | I seem to have a residual bit of fluff in my head which says FAT32 was date orientated and NTSF was alphabetic |
Please login to post a reply.
Want the latest issue of Model Engineer or Model Engineers' Workshop? Use our magazine locator links to find your nearest stockist!
Sign up to our newsletter and get a free digital issue.
You can unsubscribe at anytime. View our privacy policy at www.mortons.co.uk/privacy
You can contact us by phone, mail or email about the magazines including becoming a contributor, submitting reader's letters or making queries about articles. You can also get in touch about this website, advertising or other general issues.
Click THIS LINK for full contact details.
For subscription issues please see THIS LINK.