China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 12:32
中国DOS联盟论坛 » 其它操作系统综合讨论区 » 请问如何用DOS命令去"显示所有文件和文件夹" Please tell me how to use DOS commands to "display all files and folders" View 7,949 Replies 16
Original Poster Posted 2007-02-23 03:05 ·  中国 广东 江门 新会区 电信
初级用户
Credits 58
Posts 23
Joined 2007-02-12 07:56
19-year member
UID 79291
Gender Male
Status Offline
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?
Floor 2 Posted 2007-02-23 03:47 ·  中国 山东 济宁 兖州区 联通
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
简单就是美
Floor 3 Posted 2007-02-23 22:46 ·  中国 江苏 连云港 联通
高级用户
★★★
前进者
Credits 641
Posts 303
Joined 2007-01-10 02:57
19-year member
UID 76009
Gender Male
Status Offline
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 ]
我相信总有一天,总会遇到一个人可以相濡以沫、相吻以湿!
Floor 4 Posted 2007-02-24 00:44 ·  中国 浙江 台州 温岭市 电信
高级用户
★★
DOS学徒
Credits 526
Posts 252
Joined 2007-02-12 05:35
19-year member
UID 79286
Gender Male
Status Offline
Still, the tree command is clearer to see! I think so
Floor 5 Posted 2007-02-24 02:57 ·  中国 广东 江门 电信
初级用户
Credits 58
Posts 23
Joined 2007-02-12 07:56
19-year member
UID 79291
Gender Male
Status Offline
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 ]
Floor 6 Posted 2007-02-24 04:32 ·  中国 江苏 苏州 联通
银牌会员
★★★
Credits 1,181
Posts 533
Joined 2006-08-14 12:54
19-year member
UID 60484
Status Offline
You just need to check a certain key in the registry and save it as a REG file. Just double - click it.
Floor 7 Posted 2007-02-24 04:45 ·  中国 广东 江门 电信
初级用户
Credits 58
Posts 23
Joined 2007-02-12 07:56
19-year member
UID 79291
Gender Male
Status Offline
Which key is it? Can you be more detailed? I don't quite understand yet
Floor 8 Posted 2007-02-24 22:25 ·  中国 黑龙江 哈尔滨 电信
高级用户
★★★
Credits 760
Posts 357
Joined 2005-10-10 22:33
20-year member
UID 43332
Status Offline
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)
Floor 9 Posted 2007-02-24 22:26 ·  中国 黑龙江 哈尔滨 电信
高级用户
★★★
Credits 760
Posts 357
Joined 2005-10-10 22:33
20-year member
UID 43332
Status Offline
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)
Floor 10 Posted 2007-02-25 07:57 ·  中国 上海 浦东新区 电信
中级用户
★★
一看二跟三动手
Credits 396
Posts 188
Joined 2005-10-23 13:21
20-year member
UID 43919
From 上海
Status Offline
Originally posted by NaturalJ0 at 2007-2-24 04:32:
You can check a certain key in the registry and save a REG file. Just double-click it.



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



"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced"
"Text"="@shell32.dll,-30500"
"Type"="radio"
"CheckedValue"=dword:00000001


[ Last edited by dosz on 2007-2-25 at 08:11 AM ]
Attachments
showfile_显示所有文件和文件夹.rar (356 bytes, Credits to download 1 pts, Downloads: 17)
*/. . . * .
.\* . * dosz
*/ . ./\~~~~~~~~~~~~'\. ^|◆
\* ,/,..,\,...........,\.◆
^|^| ..▎# ▎田 田 ▎ ^| ▎◆
^|^| ^&^&▎ ▎ ▎'^|'▎ o
^|^| ##■■■■■■■■■■〓
Floor 11 Posted 2007-02-25 12:55 ·  中国 广东 江门 电信
初级用户
Credits 58
Posts 23
Joined 2007-02-12 07:56
19-year member
UID 79291
Gender Male
Status Offline
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
Floor 12 Posted 2007-02-25 14:02 ·  中国 广东 江门 电信
初级用户
Credits 58
Posts 23
Joined 2007-02-12 07:56
19-year member
UID 79291
Gender Male
Status Offline
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?
Floor 13 Posted 2007-02-26 01:10 ·  中国 上海 浦东新区 电信
中级用户
★★
一看二跟三动手
Credits 396
Posts 188
Joined 2005-10-23 13:21
20-year member
UID 43919
From 上海
Status Offline
It's completely okay. This is called silent mode. Batch processing is also possible.
*/. . . * .
.\* . * dosz
*/ . ./\~~~~~~~~~~~~'\. ^|◆
\* ,/,..,\,...........,\.◆
^|^| ..▎# ▎田 田 ▎ ^| ▎◆
^|^| ^&^&▎ ▎ ▎'^|'▎ o
^|^| ##■■■■■■■■■■〓
Floor 14 Posted 2007-02-26 06:09 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Silent mode: regedit /s xxx.reg
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 15 Posted 2007-02-26 08:25 ·  中国 上海 浦东新区 电信
中级用户
★★
一看二跟三动手
Credits 396
Posts 188
Joined 2005-10-23 13:21
20-year member
UID 43919
From 上海
Status Offline
Originally posted by Climbing at 2007-2-26 06:09:
Silent mode: regedit /s xxx.reg


Why are you in such a hurry
*/. . . * .
.\* . * dosz
*/ . ./\~~~~~~~~~~~~'\. ^|◆
\* ,/,..,\,...........,\.◆
^|^| ..▎# ▎田 田 ▎ ^| ▎◆
^|^| ^&^&▎ ▎ ▎'^|'▎ o
^|^| ##■■■■■■■■■■〓
Forum Jump: