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-23 11:30
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Semi-original] How to add a new Bat file in the right-click new View 6,315 Replies 29
Floor 16 Posted 2006-10-12 11:56 ·  中国 重庆 璧山区 电信
中级用户
★★
Credits 235
Posts 109
Joined 2006-08-24 00:52
19-year member
UID 61161
Gender Male
Status Offline
Thanks
Floor 17 Posted 2006-10-12 12:23 ·  中国 广东 佛山 电信
初级用户
Credits 84
Posts 28
Joined 2006-10-02 22:19
19-year member
UID 64342
Status Offline
Thanks, learned something....

[ Last edited by swlove on 2006-10-12 at 12:28 ]
Floor 18 Posted 2006-11-19 11:36 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
19-year member
UID 58334
Gender Male
Status Offline
Originally posted by h2o at 2006-10-9 13:48:
Like this function
No need to create a new notepad in the future

The "New" is here... (xp sp2)
In the shell32.dll file in the system32 directory, the... at the 260th position of the string...


Boss. I tried yours, but it didn't work. Let's look for it again
Floor 19 Posted 2006-11-19 13:05 ·  中国 广东 电信
初级用户
Credits 52
Posts 24
Joined 2006-11-16 06:50
19-year member
UID 70653
Gender Male
Status Offline
Thanks...Good example....Let's study first
Floor 20 Posted 2006-11-19 21:08 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
For XP system, isn't this more concise?

reg add HKCR\.bat\ShellNew /v nullfile /f
reg add HKCR\batfile /ve /d testbat /f
Anyway, it's about this registry. ^_^
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Floor 21 Posted 2006-11-20 15:54 ·  中国 北京 鹏博士BGP
初级用户
Credits 114
Posts 47
Joined 2006-11-20 04:17
19-year member
UID 71105
Gender Male
Status Offline
Such a good thing
Support/......................
Learning ing
Floor 22 Posted 2006-11-23 07:43
中级用户
★★
DOS之日
Credits 337
Posts 161
Joined 2006-11-04 05:27
19-year member
UID 69523
Gender Male
Status Offline
Nice
for /f %%h in (`echo hxuan`) do for /f %%x in (`echo hxuan`) do if %%h==%%x nul
Floor 23 Posted 2006-11-25 03:01 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Learned a lot from the landlord, thank you landlord for providing such fun and convenient content ~ : )
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 24 Posted 2006-11-27 12:48 ·  中国 河南 濮阳 电信
初级用户
Credits 66
Posts 25
Joined 2006-11-26 14:33
19-year member
UID 71807
Gender Male
Status Offline
If you remove TestBat from

echo @="TestBat" >>tmp.reg

so it becomes:

echo @="" >>tmp.reg

the system will automatically generate file names "New BATFILE.bat", "New BATFILE (2).bat", which is very convenient.
Floor 25 Posted 2007-01-21 10:16 ·  中国 云南 昆明 电信
初级用户
Credits 57
Posts 29
Joined 2006-12-27 09:36
19-year member
UID 74694
Gender Male
Status Offline
Thanks for sharing. Just came to this forum. It's really a good website.
Floor 26 Posted 2007-10-09 14:26 ·  中国 山东 青岛 联通
初级用户
★★
Credits 146
Posts 86
Joined 2007-10-01 11:27
18-year member
UID 98691
Gender Male
Status Offline
This forum is full of experts
Floor 27 Posted 2008-10-28 00:14 ·  中国 福建 泉州 电信
初级用户
★★
Credits 112
Posts 81
Joined 2008-04-11 23:47
18-year member
UID 115654
Gender Male
Status Offline
Just about to ask such a question. Searched and didn't expect there really is this problem
Floor 28 Posted 2008-10-28 03:36 ·  中国 江西 赣州 安远县 电信
银牌会员
★★★★
Credits 2,025
Posts 1,122
Joined 2007-09-05 20:15
18-year member
UID 96653
Gender Male
Status Offline
Add /? to the right-click of exe files

Windows Registry Editor Version 5.00


@="cmd /k \"%1\" /?"
Floor 29 Posted 2008-10-28 15:52 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
49206C6F766520796F752067757973 54656C3A3133383238343036373837
Floor 30 Posted 2008-10-28 21:59 ·  中国 四川 绵阳 电信
初级用户
Credits 75
Posts 46
Joined 2007-09-25 22:21
18-year member
UID 98274
Gender Male
Status Offline
The word "New" must be there. Except for modifying system files, you can casually create new WORD and Notepad, etc., and there are the words "New" in them.
Forum Jump: