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-20 21:36
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » P menu creation program View 12,278 Replies 76
Floor 16 Posted 2006-12-27 20:23 ·  中国 辽宁 大连 教育网
中级用户
★★
DOS之友
Credits 332
Posts 168
Joined 2005-10-06 00:00
20-year member
UID 43171
Gender Male
From 天涯
Status Offline
Very nice stuff, thanks OP.
测试环境: windows xp pro sp2 高手是这样炼成的:C:\WINDOWS\Help\ntcmds.chm
Floor 17 Posted 2006-12-28 02:51 ·  中国 广东 深圳 宝安区 电信
初级用户
Credits 83
Posts 35
Joined 2006-10-30 14:47
19-year member
UID 68886
Gender Male
From 广东
Status Offline
Very good, but I have no use for it...
求学永无止境!
Floor 18 Posted 2006-12-28 02:58 ·  中国 江苏 苏州 联通
银牌会员
★★★
Credits 1,181
Posts 533
Joined 2006-08-14 12:54
19-year member
UID 60484
Status Offline
Bumping this classic thing. It'd be even more interesting if there were a few more menu styles to choose from.
Floor 19 Posted 2006-12-28 03:58 ·  中国 江苏 常州 电信
初级用户
Credits 147
Posts 19
Joined 2004-02-05 00:00
22-year member
UID 16727
Gender Male
Status Offline
Thanks
Floor 20 Posted 2006-12-28 05:52 ·  中国 江西 宜春 电信
新手上路
Credits 4
Posts 2
Joined 2006-12-25 08:38
19-year member
UID 74513
Gender Male
Status Offline
Let me download and try it
Floor 21 Posted 2007-01-03 12:28 ·  中国 广东 阳江 中移铁通
新手上路
Credits 5
Posts 2
Joined 2006-12-31 05:32
19-year member
UID 75066
Gender Male
Status Offline
Not bad, good stuff! Support
Floor 22 Posted 2007-01-04 03:45 ·  中国 广东 肇庆 电信
初级用户
★★
Credits 152
Posts 74
Joined 2005-12-01 23:06
20-year member
UID 46314
Status Offline
Very nice, it's good stuff!
Floor 23 Posted 2007-01-06 05:21 ·  中国 山西 阳泉 联通
初级用户
Credits 125
Posts 49
Joined 2006-12-24 08:33
19-year member
UID 74424
Gender Male
Status Offline
No good, man. What it makes doesn't line up, and it doesn't look good either. I've always had this idea, but I just can't make it myself. Every time I have to manually press spaces to design it...
Let me give you an idea.
I want to use a batch file to write something.
@echo off
color 1f
set wj=UPXShell.exe
if not exist %wj% echo Main file %wj% cannot be found & pause & exit
SET TT=UPXShell3.20 Green Revised Edition
TITLE Uninstall %TT%------Cold Rainy Night(QQ:61813046) Uninstall ︻$▅▆▇◤
:BEGIN
cls
ECHO.
ECHO        ╭══════════════════╮
ECHO        ║                  ║
ECHO    ╭═══┤ Uninstall UPXShell3.20 Green Revised Edition ├═══╮
ECHO    ║   ║                  ║   ║
ECHO    ║   ╰══════════════════╯   ║
ECHO    ║                          ║
ECHO    ║  Are you sure you want to uninstall UPXShell3.20 Green Revised Edition? ║
ECHO    ║                          ║
ECHO    ║    [Y] Uninstall software        ║
ECHO    ║    [N] Do not uninstall software        ║
ECHO    ║    [Q] Exit                   ║
ECHO    ╟──────────────────────────╢
ECHO    ║ Note: 1. Please make sure this software has already been closed;  ║
ECHO    ║   2. Please make sure the uninstaller is in the software directory, otherwise you're responsible for the consequences.║
ECHO    ╰══════════════════════════╯
ECHO.
....There's more after this, but I won't write it. If the above section is put into a batch file, it becomes neat and tidy.
Could you add some code in the middle? Since I have TT=UPXShell3.20 Green Revised Edition
then in the options, every "UPXShell3.20 Green Revised Edition" would be replaced with %TT%+spaces. The problem is with the spaces. If the character count of the TT variable could be calculated, then the number of spaces could be calculated from that, and the calculated number of spaces could be defined as a variable, such as %sp%, then using %TT%+%sp% to replace UPXShell3.20 Green Revised Edition would keep the table from being messed up. And when modifying it, I'd only need to change the content of TT, and the content in the table would change along with it. And the table would also look nice.
Not sure if an expert like you can make that?
Floor 24 Posted 2007-01-06 05:35 ·  中国 广东 深圳 电信
初级用户
Credits 32
Posts 16
Joined 2006-10-19 21:11
19-year member
UID 66985
Gender Male
Status Offline
It seems it can't handle Chinese characters.
Floor 25 Posted 2007-01-14 00:30 ·  中国 江苏 苏州 电信
新手上路
Credits 13
Posts 6
Joined 2005-07-25 13:39
20-year member
UID 41038
Status Offline
Downloaded it, going to study it!
Floor 26 Posted 2007-01-15 05:56 ·  IANA 局域网IP(Private-Use)
初级用户
Credits 110
Posts 45
Joined 2007-01-07 00:00
19-year member
UID 75756
Gender Male
Status Offline
So awesome. Coming to this forum, all I see are experts like this. I really admire it!
Floor 27 Posted 2007-01-15 09:04 ·  中国 河南 洛阳 联通
新手上路
Credits 11
Posts 6
Joined 2007-01-15 08:42
19-year member
UID 76568
Gender Male
Status Offline
Pretty good
Floor 28 Posted 2007-01-15 12:30 ·  中国 广东 广州 花都区 电信
新手上路
Credits 9
Posts 5
Joined 2007-01-15 04:19
19-year member
UID 76548
Gender Male
Status Offline
Double-clicking it only pops up
Please enter the number of menu items to create [number]
What does that mean???
Floor 29 Posted 2007-01-15 12:35 ·  中国 江苏 连云港 电信
中级用户
★★
传说中的菜鸟
Credits 275
Posts 112
Joined 2005-04-22 00:00
21-year member
UID 38486
Gender Male
Status Offline
It really is very convenient, thanks for sharing.
Floor 30 Posted 2007-01-18 06:47 ·  中国 四川 成都 电信
初级用户
Credits 25
Posts 13
Joined 2007-01-18 05:24
19-year member
UID 76861
Gender Male
Status Offline
Pressing 2 exits automatically
Forum Jump: