Thử thêm cái coi lào
Jun
5
In danh sách thư mục với Command trên Windows
hrockvn , 04:51 , Windows , Nhận xét: (0) , Trích dẫn: (0) , Đọc: (1445) , Via Tự viết
Lớn | Vừa | Nhỏ
Lớn | Vừa | Nhỏ
Hôm rồi phải chuyển server, cần xuất list các domain (chưa có hệ thống khách hàng nó khổ thế đấy
). Loay hoay mãi để tìm cách in danh sách các domain trên con Windows chạy Helm.
Như các bạn biết, Helm nó sẽ creat mỗi domain một folder với đúng tên domain đó luôn. Vì thế cách đơn giản nhất để lấy list domain này là xuất được thư mục domains dưới dạng cây. Nhưng chỉ cần xuất folder gốc (tức là cái tên domain).
Cài phần mềm lên server thì đúng là quá tội :)). Vào helm để copy thì quá mất công vì nó có nhiều thứ dây dưa vào. Copy xong lại phải xóa đi các chữ thừa. Quá mất công.
Google vậy ^^. Google is my best friend.
Keyword: print folder tree command
Đây là những thứ tớ thu về được.
Đơn giản là sử dụng lệnh dir quen thuộc hoặc lệnh tree (lệnh ngoại trú).
Với lệnh dir ta chỉ cần thêm các tham số vào là ok.
Ví dụ:
- Chỉ in tên folder, không kích thước, ngày giờ. Gõ: dir /b
C:\Documents and Settings\HaoMD>dir /b
Desktop
Favorites
My Documents
Start Menu
- Xem cả các folder con bên trong. Gõ: dir/s
Directory of C:\Documents and Settings\HaoMD\Start Menu\Programs\Internet Down
oad Manager
04/06/2008 05:29 CH <DIR> .
04/06/2008 05:29 CH <DIR> ..
04/06/2008 05:29 CH 720 Grabber Help.lnk
04/06/2008 05:29 CH 708 IDM Help.lnk
04/06/2008 05:29 CH 708 Internet Download Manager.lnk
04/06/2008 05:29 CH 720 license.lnk
04/06/2008 05:29 CH 708 TUTORIALS.lnk
04/06/2008 05:29 CH 732 Uninstall IDM.lnk
6 File(s) 4.296 bytes
Directory of C:\Documents and Settings\HaoMD\Start Menu\Programs\Nmap
03/06/2008 04:08 CH <DIR> .
03/06/2008 04:08 CH <DIR> ..
03/06/2008 04:08 CH 743 Nmap - Zenmap GUI.lnk
1 File(s) 743 bytes
Directory of C:\Documents and Settings\HaoMD\Start Menu\Programs\Startup
22/03/2008 08:45 CH <DIR> .
22/03/2008 08:45 CH <DIR> ..
0 File(s) 0 bytes
Directory of C:\Documents and Settings\HaoMD\Start Menu\Programs\UniKey Vietna
ese Input Method
22/03/2008 03:51 CH <DIR> .
22/03/2008 03:51 CH <DIR> ..
22/03/2008 03:51 CH 659 UniKey FAQ.lnk
22/03/2008 03:51 CH 678 UniKey User Manual.lnk
22/03/2008 03:51 CH 678 UniKey.lnk
22/03/2008 03:51 CH 666 Website.lnk
4 File(s) 2.681 bytes
Directory of C:\Documents and Settings\HaoMD\Start Menu\Programs\WinRAR
22/03/2008 02:51 CH <DIR> .
22/03/2008 02:51 CH <DIR> ..
22/03/2008 02:51 CH 685 Console RAR manual.lnk
22/03/2008 02:51 CH 704 WinRAR help.lnk
22/03/2008 02:51 CH 704 WinRAR.lnk
3 File(s) 2.093 bytes
Directory of C:\Documents and Settings\HaoMD\Start Menu\Programs\Wisdom-soft S
reenHunter 5 Pro
22/03/2008 04:05 CH <DIR> .
22/03/2008 04:05 CH <DIR> ..
22/03/2008 04:05 CH 1.615 Mail FAX Order Form.lnk
22/03/2008 04:05 CH 1.678 ScreenHunter Help File.lnk
22/03/2008 04:05 CH 1.634 Uninstall.lnk
3 File(s) 4.927 bytes
Directory of C:\Documents and Settings\HaoMD\Templates
04/08/2004 08:07 SA 4.570 amipro.sam
04/08/2004 08:07 SA 5.632 excel.xls
04/08/2004 08:07 SA 1.518 excel4.xls
04/08/2004 08:07 SA 2.448 lotus.wk4
04/08/2004 08:07 SA 12.288 powerpnt.ppt
04/08/2004 08:07 SA 461 presenta.shw
04/08/2004 08:07 SA 4.017 quattro.wb2
04/08/2004 08:07 SA 58 sndrec.wav
04/08/2004 08:07 SA 4.608 winword.doc
04/08/2004 08:07 SA 1.769 winword2.doc
04/08/2004 08:07 SA 30 wordpfct.wpd
04/08/2004 08:07 SA 57 wordpfct.wpg
12 File(s) 37.456 bytes
Total Files Listed:
3406 File(s) 848.782.567 bytes
1190 Dir(s) 24.407.207.936 bytes free
- In tất cả các file, đếch cần biết nó là loại gì (ẩn hay không, hệ thống hay không). Gõ: dir /a
C:\Documents and Settings\HaoMD>dir /a
Volume in drive C has no label.
Volume Serial Number is B42D-3A77
Directory of C:\Documents and Settings\HaoMD
05/06/2008 05:29 SA <DIR> .
05/06/2008 05:29 SA <DIR> ..
04/06/2008 05:29 CH <DIR> Application Data
05/06/2008 05:25 SA <DIR> Cookies
05/06/2008 04:58 SA <DIR> Desktop
03/06/2008 03:01 CH <DIR> Favorites
05/06/2008 05:29 SA 556 list.txt
22/03/2008 08:45 CH <DIR> Local Settings
04/06/2008 05:59 CH <DIR> My Documents
22/03/2008 08:45 CH <DIR> NetHood
05/06/2008 05:30 SA 2.621.440 NTUSER.DAT
05/06/2008 05:34 SA 479.232 ntuser.dat.LOG
04/06/2008 06:50 CH 178 ntuser.ini
22/03/2008 08:45 CH <DIR> PrintHood
05/06/2008 05:30 SA <DIR> Recent
04/06/2008 06:31 SA <DIR> SendTo
22/03/2008 04:05 CH <DIR> Start Menu
22/03/2008 01:51 CH <DIR> Templates
4 File(s) 3.101.406 bytes
14 Dir(s) 24.379.277.312 bytes free
- Ngoài ra, nếu bạn thêm vào lệnh >prn thì nó sẽ in ra máy in nếu có kết nối. Hoặc nhập >list.txt thì nó sẽ xuất ra file list.txt ở nơi đó (nếu gõ hai dấu lớn hơn như thế này >>list.txt thì nó sẽ xuất vào file list.txt đã có sẵn)
Ngoài ra bạn có thể dùng các phần mềm hỗ trợ như sau:
Karen's Directory Printer
http://www.karenware.com/powertools/ptdirprn.asp
Print Folder Pro:
http://no-nonsense-software.com/download.html
Print It:
http://www.skylarkutilities.com/print-it/home.html
DirPrint by Wim Heirman:
http://studwww.rug.ac.be/~wheirman/
http://studwww.rug.ac.be/~wheirman/zip/dirprt40.zip
Directory printer
http://www.galcott.com/
). Loay hoay mãi để tìm cách in danh sách các domain trên con Windows chạy Helm.Như các bạn biết, Helm nó sẽ creat mỗi domain một folder với đúng tên domain đó luôn. Vì thế cách đơn giản nhất để lấy list domain này là xuất được thư mục domains dưới dạng cây. Nhưng chỉ cần xuất folder gốc (tức là cái tên domain).
Cài phần mềm lên server thì đúng là quá tội :)). Vào helm để copy thì quá mất công vì nó có nhiều thứ dây dưa vào. Copy xong lại phải xóa đi các chữ thừa. Quá mất công.
Google vậy ^^. Google is my best friend.
Keyword: print folder tree command
Đây là những thứ tớ thu về được.
Đơn giản là sử dụng lệnh dir quen thuộc hoặc lệnh tree (lệnh ngoại trú).
Với lệnh dir ta chỉ cần thêm các tham số vào là ok.
Ví dụ:
- Chỉ in tên folder, không kích thước, ngày giờ. Gõ: dir /b
C:\Documents and Settings\HaoMD>dir /b
Desktop
Favorites
My Documents
Start Menu
- Xem cả các folder con bên trong. Gõ: dir/s
Directory of C:\Documents and Settings\HaoMD\Start Menu\Programs\Internet Down
oad Manager
04/06/2008 05:29 CH <DIR> .
04/06/2008 05:29 CH <DIR> ..
04/06/2008 05:29 CH 720 Grabber Help.lnk
04/06/2008 05:29 CH 708 IDM Help.lnk
04/06/2008 05:29 CH 708 Internet Download Manager.lnk
04/06/2008 05:29 CH 720 license.lnk
04/06/2008 05:29 CH 708 TUTORIALS.lnk
04/06/2008 05:29 CH 732 Uninstall IDM.lnk
6 File(s) 4.296 bytes
Directory of C:\Documents and Settings\HaoMD\Start Menu\Programs\Nmap
03/06/2008 04:08 CH <DIR> .
03/06/2008 04:08 CH <DIR> ..
03/06/2008 04:08 CH 743 Nmap - Zenmap GUI.lnk
1 File(s) 743 bytes
Directory of C:\Documents and Settings\HaoMD\Start Menu\Programs\Startup
22/03/2008 08:45 CH <DIR> .
22/03/2008 08:45 CH <DIR> ..
0 File(s) 0 bytes
Directory of C:\Documents and Settings\HaoMD\Start Menu\Programs\UniKey Vietna
ese Input Method
22/03/2008 03:51 CH <DIR> .
22/03/2008 03:51 CH <DIR> ..
22/03/2008 03:51 CH 659 UniKey FAQ.lnk
22/03/2008 03:51 CH 678 UniKey User Manual.lnk
22/03/2008 03:51 CH 678 UniKey.lnk
22/03/2008 03:51 CH 666 Website.lnk
4 File(s) 2.681 bytes
Directory of C:\Documents and Settings\HaoMD\Start Menu\Programs\WinRAR
22/03/2008 02:51 CH <DIR> .
22/03/2008 02:51 CH <DIR> ..
22/03/2008 02:51 CH 685 Console RAR manual.lnk
22/03/2008 02:51 CH 704 WinRAR help.lnk
22/03/2008 02:51 CH 704 WinRAR.lnk
3 File(s) 2.093 bytes
Directory of C:\Documents and Settings\HaoMD\Start Menu\Programs\Wisdom-soft S
reenHunter 5 Pro
22/03/2008 04:05 CH <DIR> .
22/03/2008 04:05 CH <DIR> ..
22/03/2008 04:05 CH 1.615 Mail FAX Order Form.lnk
22/03/2008 04:05 CH 1.678 ScreenHunter Help File.lnk
22/03/2008 04:05 CH 1.634 Uninstall.lnk
3 File(s) 4.927 bytes
Directory of C:\Documents and Settings\HaoMD\Templates
04/08/2004 08:07 SA 4.570 amipro.sam
04/08/2004 08:07 SA 5.632 excel.xls
04/08/2004 08:07 SA 1.518 excel4.xls
04/08/2004 08:07 SA 2.448 lotus.wk4
04/08/2004 08:07 SA 12.288 powerpnt.ppt
04/08/2004 08:07 SA 461 presenta.shw
04/08/2004 08:07 SA 4.017 quattro.wb2
04/08/2004 08:07 SA 58 sndrec.wav
04/08/2004 08:07 SA 4.608 winword.doc
04/08/2004 08:07 SA 1.769 winword2.doc
04/08/2004 08:07 SA 30 wordpfct.wpd
04/08/2004 08:07 SA 57 wordpfct.wpg
12 File(s) 37.456 bytes
Total Files Listed:
3406 File(s) 848.782.567 bytes
1190 Dir(s) 24.407.207.936 bytes free
- In tất cả các file, đếch cần biết nó là loại gì (ẩn hay không, hệ thống hay không). Gõ: dir /a
C:\Documents and Settings\HaoMD>dir /a
Volume in drive C has no label.
Volume Serial Number is B42D-3A77
Directory of C:\Documents and Settings\HaoMD
05/06/2008 05:29 SA <DIR> .
05/06/2008 05:29 SA <DIR> ..
04/06/2008 05:29 CH <DIR> Application Data
05/06/2008 05:25 SA <DIR> Cookies
05/06/2008 04:58 SA <DIR> Desktop
03/06/2008 03:01 CH <DIR> Favorites
05/06/2008 05:29 SA 556 list.txt
22/03/2008 08:45 CH <DIR> Local Settings
04/06/2008 05:59 CH <DIR> My Documents
22/03/2008 08:45 CH <DIR> NetHood
05/06/2008 05:30 SA 2.621.440 NTUSER.DAT
05/06/2008 05:34 SA 479.232 ntuser.dat.LOG
04/06/2008 06:50 CH 178 ntuser.ini
22/03/2008 08:45 CH <DIR> PrintHood
05/06/2008 05:30 SA <DIR> Recent
04/06/2008 06:31 SA <DIR> SendTo
22/03/2008 04:05 CH <DIR> Start Menu
22/03/2008 01:51 CH <DIR> Templates
4 File(s) 3.101.406 bytes
14 Dir(s) 24.379.277.312 bytes free
- Ngoài ra, nếu bạn thêm vào lệnh >prn thì nó sẽ in ra máy in nếu có kết nối. Hoặc nhập >list.txt thì nó sẽ xuất ra file list.txt ở nơi đó (nếu gõ hai dấu lớn hơn như thế này >>list.txt thì nó sẽ xuất vào file list.txt đã có sẵn)
Ngoài ra bạn có thể dùng các phần mềm hỗ trợ như sau:
Karen's Directory Printer
http://www.karenware.com/powertools/ptdirprn.asp
Print Folder Pro:
http://no-nonsense-software.com/download.html
Print It:
http://www.skylarkutilities.com/print-it/home.html
DirPrint by Wim Heirman:
http://studwww.rug.ac.be/~wheirman/
http://studwww.rug.ac.be/~wheirman/zip/dirprt40.zip
Directory printer
http://www.galcott.com/
Upload lên nhiều File Hosting cùng lúc
Sầm Sơn ơi Khi Nào Em Chuyên Nghiệp
