![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-26 15:49 |
47,812 topics / 349,910 posts / today 0 new / 48,264 members |
| 其它操作系统综合讨论区 » 请问如何用DOS命令去"显示所有文件和文件夹" Please tell me how to use DOS commands to "display all files and folders" |
| Printable Version 8,367 / 16 |
| Floor1 kpshare | Posted 2007-02-23 03:05 |
| 初级用户 Posts 23 Credits 58 | |
|
In Windows, you can directly click "Tools" -- "Folder Options" -- "View" -- and in the advanced settings, check "Show all files and folders". As for DOS, is there such a function? If there is, how to set it?
|
|
| Floor2 Michael | Posted 2007-02-23 03:47 |
| 钻石会员 Posts 3,041 Credits 10,056 | |
| Floor3 oilio | Posted 2007-02-23 22:46 |
| 高级用户 Posts 303 Credits 641 | |
|
The above is okay. /a means all attribute files and folders. Then a little supplement, if you want to separate files and folders, you can use dir /a-d to display all files, and dir /ad to display all folders. You can also add other parameters after /a to display files or folders with specified attributes
[ Last edited by oilio on 2007-2-23 at 09:47 AM ] |
|
| Floor4 gne3 | Posted 2007-02-24 00:44 |
| 高级用户 Posts 252 Credits 526 | |
|
Still, the tree command is clearer to see! I think so
|
|
| Floor5 kpshare | Posted 2007-02-24 02:57 |
| 初级用户 Posts 23 Credits 58 | |
|
Thank you very much for your replies. But what I want to say is not this meaning. Using dir /a can display all hidden files, but it can only be displayed in the command prompt. As soon as I return to the Windows folder, they are not displayed anymore. What I want to do is to be able to see all hidden files like in Windows by clicking "Tools" -- "Folder Options" -- "View" -- and checking "Show all files and folders" in the advanced settings, and their attributes remain unchanged. As for DOS, can a batch file be made to achieve this!
[ Last edited by kpshare on 2007-2-23 at 02:10 PM ] |
|
| Floor6 NaturalJ0 | Posted 2007-02-24 04:32 |
| 银牌会员 Posts 533 Credits 1,181 | |
|
You just need to check a certain key in the registry and save it as a REG file. Just double - click it.
|
|
| Floor7 kpshare | Posted 2007-02-24 04:45 |
| 初级用户 Posts 23 Credits 58 | |
|
Which key is it? Can you be more detailed? I don't quite understand yet
|
|
| Floor8 0451lym | Posted 2007-02-24 22:25 |
| 高级用户 Posts 357 Credits 760 | |
|
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell") intAnswer = MsgBox("【Yes】Add "Show/Hide System Files" to the right-click menu," & Chr(10) & Chr(10) & "【No】Remove "Show/Hide System Files" from the right-click menu. ", vbQuestion + vbYesNoCancel, "Show/Hide System Files - zh159@bbs.cn-dos.net") If intAnswer = vbYes Then WshShell.RegWrite "HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\SuperHidden\", "{00000000-0000-0000-0000-000000000012}", "REG_SZ" WshShell.RegWrite "HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\InProcServer32\", "%SystemRoot%\system32\shdocvw.dll", "REG_EXPAND_SZ" WshShell.RegWrite "HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\InProcServer32\ThreadingModel", "Apartment", "REG_SZ" WshShell.RegWrite "HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\Instance\CLSID", "{3f454f0e-42ae-4d7c-8ea3-328250d6e272}", "REG_SZ" WshShell.RegWrite "HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\Instance\InitPropertyBag\CLSID", "{13709620-C279-11CE-A49E-444553540000}", "REG_SZ" WshShell.RegWrite "HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\Instance\InitPropertyBag\command", "Show System Files", "REG_SZ" WshShell.RegWrite "HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\Instance\InitPropertyBag\method", "ShellExecute", "REG_SZ" WshShell.RegWrite "HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\Instance\InitPropertyBag\Param1", "SuperHidden.vbs", "REG_SZ" WshShell.Run "cmd /c copy/y SuperHidden.vbs %windir%\",vbhide end if If intAnswer = vbNo Then WshShell.Run "cmd /c reg delete HKCR\CLSID\{00000000-0000-0000-0000-000000000012} /f",vbhide WshShell.Run "cmd /c reg delete HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\SuperHidden /f",vbhide WshShell.Run "cmd /c del/q %windir%\SuperHidden.vbs",vbhide end if If intAnswer = vbCancel Then end if Set WSHShell = Nothing WScript.Quit(0) |
|
| Floor9 0451lym | Posted 2007-02-24 22:26 |
| 高级用户 Posts 357 Credits 760 | |
|
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell") if WSHShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden") = 1 then WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden", "0", "REG_DWORD" WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", "2", "REG_DWORD" WshShell.RegWrite "HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\Instance\InitPropertyBag\command", "Show system files", "REG_SZ" WshShell.SendKeys "{F5}+{F10}e" else WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden", "1", "REG_DWORD" WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", "1", "REG_DWORD" WshShell.RegWrite "HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\Instance\InitPropertyBag\command", "Hide system files", "REG_SZ" WshShell.SendKeys "{F5}+{F10}e" end if Set WSHShell = Nothing WScript.Quit(0) |
|
| Floor10 dosz | Posted 2007-02-25 07:57 |
| 中级用户 Posts 188 Credits 396 From 上海 | |
Originally posted by NaturalJ0 at 2007-2-24 04:32: The following REG works very well It was used when killing the Panda烧香 virus == showfile_Display all files and folders.reg == Windows Registry Editor Version 5.00 [ Last edited by dosz on 2007-2-25 at 08:11 AM ] Attachments showfile_显示所有文件和文件夹.rar (356 bytes) |
|
| Floor11 kpshare | Posted 2007-02-25 12:55 |
| 初级用户 Posts 23 Credits 58 | |
|
It's complicated, I can't understand it very well, but it seems okay if I do it like this, I don't know if it's good or not
(1) Show files Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] "Hidden"=dword:00000001 (2) Don't show files Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] "Hidden"=dword:00000000 |
|
| Floor12 kpshare | Posted 2007-02-25 14:02 |
| 初级用户 Posts 23 Credits 58 | |
|
I still have a question. When importing the registry, the system will display a prompt message asking if you want to import. How can I make this prompt message not appear and directly modify the registry, achieving a silent operation?
|
|
| Floor13 dosz | Posted 2007-02-26 01:10 |
| 中级用户 Posts 188 Credits 396 From 上海 | |
|
It's completely okay. This is called silent mode. Batch processing is also possible.
|
|
| Floor14 Climbing | Posted 2007-02-26 06:09 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
|
Silent mode: regedit /s xxx.reg
|
|
| Floor15 dosz | Posted 2007-02-26 08:25 |
| 中级用户 Posts 188 Credits 396 From 上海 | |
Originally posted by Climbing at 2007-2-26 06:09: Why are you in such a hurry |
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |