Please help with this cmd line to save txt for me.

CiscoDKid

New member
Local time
12:48 PM
Messages
2
I can sort my directory the way I want using the parameters
G:\Mozart> /b *.mp3 sort -n
to get the way I want it to display on screen



and I can save a text files like so:
G:\Mozart>dir>mylist.txt


But for the life of me I cannot see how to do both at once....i.e. save a txt file that is stripped sorted and just mp3. I can either sort or save the .txt but not both.



Please, what sequence would I use to get both the switches /b etc. combined with the .txt command? IN other words where do I put the dir>mylist.txt part in the cmd line or is it impossible to save a sorted file....only display it?


Thanks very much
 

My Computer My Computer

At a glance

Ultimate x64
Computer type
Laptop
OS
Ultimate x64
Hello CiscoDKid,
Welcome to the Forum.

You can type DIR G:\Mozart\*.mp3 /b >mylist.txt, and the results should be in alphabetical order.
 

My Computer My Computer

At a glance

Windows 7 x64, Vista x64, 8.1 smartphoneIntel E8400 65W 64-bitDDR2 2 x 2GB, 1GB x 2XFX Radeon HD5750
Computer type
PC/Desktop
OS
Windows 7 x64, Vista x64, 8.1 smartphone
CPU
Intel E8400 65W 64-bit
Motherboard
Gigabyte EP45-UD3LR
Memory
DDR2 2 x 2GB, 1GB x 2
Graphics Card(s)
XFX Radeon HD5750
Sound Card
AMD High Definition Audio; Realtek High Definition Audio
Monitor(s) Displays
iiyama prolite X2377HDS
Screen Resolution
1920 x 1080
Hard Drives
500GB 7200 rpm Seagate ST3500413AS 16MB, 500GB 5400 rpm Toshiba MQ02ABF050H 32MB, 200GB 7200 rpm Seagate ST3200820AS 8MB, 2TB 7200 rpm Western Digital WD20EZRX 64MB
PSU
Enermax Liberty Modular
Case
Antec P193 Midi Tower
Keyboard
Mionix ZIBAL 60
Mouse
Razer USB 2.0 Diamondback Mouse or Huion Graphics Tablet
Browser
Internet Explorer, Lunascape, Firefox, Opera, Avast Safezone
Thanks very much. That did the trick.
 

My Computer My Computer

At a glance

Ultimate x64
Computer type
Laptop
OS
Ultimate x64
Back
Top