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-07-29 11:47
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » A Ji Pin Mi Pan written with batch processing View 5,588 Replies 21
Floor 16 Posted 2006-08-19 00:14 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Reply to IceCrack's question, do your best.

Explorer, that is, the things in "My Computer", are not all files on the file system/disk. For example, things like the desktop and the recycle bin belong to fictional paths. The dead Microsoft official term is namespace, which is a hierarchical system that is larger than the file system (FS). Let's take an example. You can take a look at the properties of "Start Menu\Programs\Accessories\Communications\Network Connections.lnk":



%SystemRoot%\explorer.exe::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{7007acc7-3202-11d1-aad2-00805fc1270e}



The string above is called CLSID, which represents the path of the namespace. Translated, it is

Explorer \ My Computer \ Control Panel \ Network Connections \

Then, the recycle bin encryption uses a similar CLSID:
{645FF040-5081-101B-9F08-00AA002F954E}

It generates the notorious desktop.ini in the target encrypted folder, with the content:


CLSID={645FF040-5081-101B-9F08-00AA002F954E}

Then add the system hidden attribute.

If you go to dir the recycler folder under C: D: E:, you will also find the exactly same desktop.ini.

In fact, create a new folder and rename it to:
a.{645FF040-5081-101B-9F08-00AA002F954E}

Double-click it. Does it open the recycle bin?

Then rename it to
b.{2227A280-3AEA-1069-A2DE-08002B30309D}

Does it open the Printers folder?

There are too many similar tricks. If you are interested, you can refer to the relevant chapters of MSDN, including script writing shell programs, which are very interesting. (My MSDN is from February 2003)
ms-help://MS.MSDNQTR.2003FEB.2052/shellcc/platform/shell/programmersguide/shell_intro.htm

Also recommend a fun thing. You can edit the system's namespace.
Shell Object Editor http://www.crsky.com/soft/2206.html

Finally, why can you see it in cmd? My signature says: cmd is just a kind of shell, different from Explorer, the Windows shell. It is not affected by Explorer's characteristics, so you can view it.

[ Last edited by electronixtar on 2006-8-19 at 00:23 ]

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 17 Posted 2006-08-19 12:58 ·  中国 江苏 苏州 电信
初级用户
★★
Credits 160
Posts 75
Joined 2006-06-28 01:07
20-year member
UID 57661
Gender Male
Status Offline
Learning
Floor 18 Posted 2006-08-19 13:27 ·  中国 辽宁 大连 教育网
中级用户
★★
DOS之友
Credits 332
Posts 168
Joined 2005-10-06 00:00
20-year member
UID 43171
Gender Male
From 天涯
Status Offline
My signature says: cmd is just a kind of shell, different from the Windows shell of explorer. It is not affected by the characteristics of explorer, so it can be viewed.

Just do it directly. Why your signature says. Oh my god
According to your train of thought, I used tc to check. Hehe, I can see the file, that is to say, tc is not using the shell of explorer!
Hehe
测试环境: windows xp pro sp2 高手是这样炼成的:C:\WINDOWS\Help\ntcmds.chm
Floor 19 Posted 2006-08-19 14:33 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline

tc is not using the shell of explorer anymore

Precisely speaking, Total Commander should not be the shell built into Windows

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 20 Posted 2006-09-07 02:13 ·  中国 上海 上海乾万网络(QianWan_Network)有限公司(电信出口)
新手上路
Credits 18
Posts 7
Joined 2006-09-01 08:31
19-year member
UID 61668
Status Offline
Floor 21 Posted 2007-10-19 23:47 ·  中国 山东 青岛 联通
初级用户
★★
Credits 146
Posts 86
Joined 2007-10-01 11:27
18-year member
UID 98691
Gender Male
Status Offline
Thanks to the building owner's sharing spirit
Floor 22 Posted 2008-03-25 13:33 ·  中国 山东 烟台 联通
中级用户
★★
Credits 231
Posts 110
Joined 2008-03-24 16:22
18-year member
UID 113876
Gender Male
From 中国大陆
Status Offline
That's too scary. I found such a precise one too. Thanks to the楼主
Forum Jump: