|   
kpshare 
初级用户
 
  
 
  
  
积分 58 
发帖 23 
注册 2007-2-12 
状态 离线
 | 
『楼 主』:
 请问如何用DOS命令去"显示所有文件和文件夹"
 
使用 LLM 解释/回答一下
  
用windows 可以直接点击"工具"--"文件夹选项"--"查看"--在高级设置里选中"显示所有文件和文件夹"便可以了,至于DOS里请问有没有此功能,如果有,又是怎样设置呀!1 
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? 
    
 
  
 |   
 |  
  2007-2-23 03:05 | 
  
 |  
 |   
Michael 
钻石会员
 
        
 
  
  
积分 10046 
发帖 3039 
注册 2002-11-11 
状态 离线
 | 
 |  
  2007-2-23 03:47 | 
  
 |  
 |   
oilio 
高级用户
 
     前进者
  
 
积分 641 
发帖 303 
注册 2007-1-10 
状态 离线
 | 
『第 3 楼』:
 
 
使用 LLM 解释/回答一下
  
楼上的这样就可以,/a指所有属性的文件和文件夹,再小小补充一下,如果想分离文件和文件夹,可以用dir /a-d来显示所有的文件,dir /ad显示所有的文件夹。也可以/a后面加其它参数来显示指定属性的文件或文件夹 
 
 Last edited by oilio on 2007-2-23 at 09:47 AM ] 
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 ] 
    
 
  
  |  
                  
  
                    我相信总有一天,总会遇到一个人可以相濡以沫、相吻以湿! |   
 |  
  2007-2-23 22:46 | 
  
 |  
 |   
gne3 
高级用户
 
     DOS学徒
  
 
积分 526 
发帖 252 
注册 2007-2-12 
状态 离线
 | 
『第 4 楼』:
 
 
使用 LLM 解释/回答一下
  
还是tree命令看到清楚啊!我觉得 
Still, the tree command is clearer to see! I think so 
    
 
  
 |   
 |  
  2007-2-24 00:44 | 
  
 |  
 |   
kpshare 
初级用户
 
  
 
  
  
积分 58 
发帖 23 
注册 2007-2-12 
状态 离线
 | 
『第 5 楼』:
 
 
使用 LLM 解释/回答一下
  
非常感谢你们的回复.但我想说的并不是这个意思,用dir /a是可以显示所有的隐藏文件,但是只能够在命令提示符下显示,而一回到windows文件夹里又不再显示了,我想做的是能像windows那样, 点击了"工具"--"文件夹选项"--"查看"--在高级设置里选中"显示所有文件和文件夹"后便可以看到全部的隐藏文件,且其属性不变,至于DOS,能不能弄个批处理文件来实现呀! 
 
 Last edited by kpshare on 2007-2-23 at 02:10 PM ] 
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 ] 
    
 
  
 |   
 |  
  2007-2-24 02:57 | 
  
 |  
 |   
NaturalJ0 
银牌会员
 
     
 
  
 
积分 1181 
发帖 533 
注册 2006-8-14 
状态 离线
 | 
『第 6 楼』:
 
 
使用 LLM 解释/回答一下
  
你查下注册表的某键,存个 REG 文件就行了。要用双击下。 
You just need to check a certain key in the registry and save it as a REG file. Just double - click it. 
    
 
  
 |   
 |  
  2007-2-24 04:32 | 
  
 |  
 |   
kpshare 
初级用户
 
  
 
  
  
积分 58 
发帖 23 
注册 2007-2-12 
状态 离线
 | 
『第 7 楼』:
 
 
使用 LLM 解释/回答一下
  
哪个键呀,能详细点吗,我有点不太懂呢 
Which key is it? Can you be more detailed? I don't quite understand yet 
    
 
  
 |   
 |  
  2007-2-24 04:45 | 
  
 |  
 |   
0451lym 
高级用户
 
    
 
  
  
积分 760 
发帖 357 
注册 2005-10-10 
状态 离线
 | 
『第 8 楼』:
 
 
使用 LLM 解释/回答一下
  
Dim WshShell 
Set WshShell = WScript.CreateObject("WScript.Shell")
 
intAnswer = MsgBox("【是】将“显示/隐藏系统文件”加入到右键菜单,"&Chr(10)&Chr(10)&"【否】将“显示/隐藏系统文件”从右键菜单删除。 ", vbQuestion + vbYesNoCancel, "显示/隐藏系统文件 -  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", "显示系统文件", "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)  
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)  
    
 
  
 |   
 |  
  2007-2-24 22:25 | 
  
 |  
 |   
0451lym 
高级用户
 
    
 
  
  
积分 760 
发帖 357 
注册 2005-10-10 
状态 离线
 | 
『第 9 楼』:
 
 
使用 LLM 解释/回答一下
  
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", "显示系统文件", "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", "隐藏系统文件", "REG_SZ" 
WshShell.SendKeys "{F5}+{F10}e" 
 
end if 
Set WSHShell = Nothing 
WScript.Quit(0) 
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) 
    
 
  
 |   
 |  
  2007-2-24 22:26 | 
  
 |  
 |   
dosz 
中级用户
 
    一看二跟三动手
  
 
积分 396 
发帖 188 
注册 2005-10-23 来自 上海 
状态 离线
 | 
『第 10 楼』:
 
 
使用 LLM 解释/回答一下
  
Originally posted by NaturalJ0 at 2007-2-24 04:32: 
你查下注册表的某键,存个 REG 文件就行了。要用双击下。  
以下REG效果很好 在杀熊猫烧香病毒时用过 
 == showfile_显示无法显示所有文件和文件夹.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 ]  
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 ]  
    
 
  
附件
1:   showfile_显示所有文件和文件夹.rar (2007-2-25 07:57, 356 bytes, 下载附件所需积分 1 点
,下载次数: 17)
 
 
  |  
                  
  
                    */. . . * . 
.\* .  * dosz 
*/ . ./\~~~~~~~~~~~~'\. ^|◆ 
\* ,/,..,\,...........,\.◆ 
^|^| ..▎# ▎田 田 ▎ ^| ▎◆ 
^|^| ^&^&▎ ▎ ▎'^|'▎ o        
^|^| ##■■■■■■■■■■〓 |   
 |  
  2007-2-25 07:57 | 
  
 |  
 |   
kpshare 
初级用户
 
  
 
  
  
积分 58 
发帖 23 
注册 2007-2-12 
状态 离线
 | 
『第 11 楼』:
 
 
使用 LLM 解释/回答一下
  
好复杂,我看不太懂,但我这样弄好像也行,不知好不好呢 
(1)显示文件 
Windows Registry Editor Version 5.00 
 
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 
"Hidden"=dword:00000001 
(2)不显示文件 
Windows Registry Editor Version 5.00 
 
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 
"Hidden"=dword:00000000 
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 
 
 
"Hidden"=dword:00000001 
(2) Don't show files 
Windows Registry Editor Version 5.00 
 
 
"Hidden"=dword:00000000 
    
 
  
 |   
 |  
  2007-2-25 12:55 | 
  
 |  
 |   
kpshare 
初级用户
 
  
 
  
  
积分 58 
发帖 23 
注册 2007-2-12 
状态 离线
 | 
『第 12 楼』:
 
 
使用 LLM 解释/回答一下
  
我还有个问题,就是在导入注册表时,系统会出现提示消息,问你是否导入,请问如何让这个提消息也不显示出来,直接修改注册表,达到无声无色呀 
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? 
    
 
  
 |   
 |  
  2007-2-25 14:02 | 
  
 |  
 |   
dosz 
中级用户
 
    一看二跟三动手
  
 
积分 396 
发帖 188 
注册 2005-10-23 来自 上海 
状态 离线
 | 
『第 13 楼』:
 
 
使用 LLM 解释/回答一下
  
完全可以的,这叫安静模式.批处理也可以的. 
It's completely okay. This is called silent mode. Batch processing is also possible. 
    
 
  
  |  
                  
  
                    */. . . * . 
.\* .  * dosz 
*/ . ./\~~~~~~~~~~~~'\. ^|◆ 
\* ,/,..,\,...........,\.◆ 
^|^| ..▎# ▎田 田 ▎ ^| ▎◆ 
^|^| ^&^&▎ ▎ ▎'^|'▎ o        
^|^| ##■■■■■■■■■■〓 |   
 |  
  2007-2-26 01:10 | 
  
 |  
 |   
Climbing 
铂金会员
 
        网络独行侠
  
 
积分 6962 
发帖 2753 
注册 2003-4-16 来自 河北保定 
状态 离线
 | 
『第 14 楼』:
 
 
使用 LLM 解释/回答一下
  
Silent模式:regedit /s xxx.reg 
Silent mode: regedit /s xxx.reg 
    
 
  
  |  
                  
  
                    偶只喜欢回答那些标题和描述都很清晰的帖子! 
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人! 
 |   
 |  
  2007-2-26 06:09 | 
  
 |  
 |   
dosz 
中级用户
 
    一看二跟三动手
  
 
积分 396 
发帖 188 
注册 2005-10-23 来自 上海 
状态 离线
 | 
『第 15 楼』:
 
 
使用 LLM 解释/回答一下
  
Originally posted by Climbing at 2007-2-26 06:09: 
Silent模式:regedit /s xxx.reg  
你怎么这么急  
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        
^|^| ##■■■■■■■■■■〓 |   
 |  
  2007-2-26 08:25 | 
  
 |  
  |