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-27 11:33
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Voting Closed] Should the batch processing interface be well done? View 8,327 Replies 54
Poll: [Voting Closed] Should the batch processing interface be well done? (Single Choice)
应该 44 votes · 61.1%
不应该 11 votes · 15.3%
不确定 17 votes · 23.6%
This poll is closed; results are shown below.
Floor 16 Posted 2009-04-05 10:58 ·  中国 湖北 荆州 洪湖市 电信
初级用户
★★
Credits 161
Posts 114
Joined 2009-02-20 13:00
17-year member
UID 139375
Gender Male
Status Offline
Brothers and sisters! You make me more depressed...

Post a picture first, I don't know what suggestions you all have.
Attachments
未命名.png
Floor 17 Posted 2009-04-06 00:33 ·  中国 北京 联通
银牌会员
★★★
Credits 1,287
Posts 634
Joined 2007-05-02 15:06
19-year member
UID 87277
Gender Male
From cmd.exe
Status Offline
Floor 18 Posted 2009-04-06 01:27 ·  中国 广东 广州 从化区 电信
新手上路
Credits 2
Posts 2
Joined 2009-04-05 02:47
17-year member
UID 142157
Gender Male
Status Offline
Floor 19 Posted 2009-04-06 01:55 ·  中国 重庆 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Moderator HAT said: "When your batch processing level can solve most of the problems in this section, then consider the so-called interface."... Depressed, does a person with very poor batch processing have no right to make an interface?

Misunderstood my meaning. Anyone has the right to make an interface, no one can control it.
I mean, everyone should put limited energy into infinite learning, not some flashy things.
Okay, I'm very depressed. A bit unwilling, hope everyone can persuade me.

Is the purpose of this post to have someone persuade you? What a joke? Everyone is so busy, where is the time to waste here.
Floor 20 Posted 2009-04-06 02:58 ·  中国 湖北 荆州 电信
初级用户
★★
Credits 161
Posts 114
Joined 2009-02-20 13:00
17-year member
UID 139375
Gender Male
Status Offline

The purpose of this post is to have someone persuade you? Are you kidding? Everyone is so busy, where is the time to waste here.


HAT moderator.. Just found out you are quite funny.

Well.. I mainly want to see everyone's thoughts, and then consider whether there is a need to continue with "Xiao Qiang System Optimization Tool 3.0". This is the purpose of this post.
Floor 21 Posted 2009-04-06 04:39 ·  中国 重庆 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Go ahead. I support it.
Floor 22 Posted 2009-04-06 05:52 ·  中国 江西 抚州 电信
高级用户
★★★
中國DOS聯盟常任參議员
Credits 686
Posts 318
Joined 2005-11-04 13:00
20-year member
UID 77577
Gender Male
Status Offline
Support to continue doing it. The interface is for simplifying things. Being beautiful is not wrong, after all, not everyone using a computer understands. Writing copy del can also be good for those who need to make interfaces to study.
. 繽紛色彩閃出的美麗是因為它沒有分開每種色彩...>/

我的百度空间: BEYOND超越 为什么用DOS
Floor 23 Posted 2009-04-06 06:18 ·  中国 湖北 荆州 电信
初级用户
★★
Credits 161
Posts 114
Joined 2009-02-20 13:00
17-year member
UID 139375
Gender Male
Status Offline
Please let all the immortals read patiently. Thank you.

Originally posted by HAT at 2009-4-6 04:39:
Just keep doing it
I support


Thank you for your support.

I really want to continue. One should see things through to the end. The behavior of being a "eunuch" is very bad.

Last time I posted a help post: "May I ask: How should this batch processing continue" (later the forum data error unfortunately lost..). A few people replied, but didn't solve my problem. I post again today, hoping that there will be experts to give pointers.
Because this problem makes me unable to continue: "Xiao Qiang System Optimization Tool 3.0" may be the final version. I hope to make a relatively perfect "Xiao Qiang" come out. Xiao Qiang focuses on the interface with batch processing, so its interface should be refreshing, generous + friendly. This problem will make the interface unable to achieve the effect I want, and I have been unable to think of a countermeasure, so I haven't continued.
{Some classmates in our class asked me: Why does each upgrade jump directly to 1.0? Because each upgraded version is rewritten entirely (everyone who has noticed should be able to see it). I think this can optimize the code to the greatest extent. If modified on the basis of the original version, it will go around to the previous idea. So each main version directly rises to 1.0.}


What I want to do is:

1. When performing tasks such as optimization and cleaning, a window can pop up to display the progress. For example:
┌───────────────────┐
│Currently doing: System optimization 1% │
│ │
│■■■■■■■■ │
└───────────────────┘
2. When the user needs to choose, a selection box pops up:
┌───────────────────┐
│Are you sure? │
│ │
│ Confirm Cancel │
└───────────────────┘

Of course, the pop-up windows are all drawn in CMD. No VBS..

I have done it several times, but it doesn't match this interface. So I'm very distressed. How can I make such a pop-up window suitable for the interface?

Source code download:
http://upload.cn-dos.net/img/1392.rar
Note: The source program runs very fast on a machine with a 1.1G CPU and 128M memory. It takes less than 1 second to draw the entire interface. If you find that it runs very slowly, please close some things that occupy a lot of memory and CPU first.

Maybe everyone is very busy. Seeing so many posts with many grammar mistakes, they don't even have the mood to read them, let alone solve my problem. I still hope that there will be some kind and enthusiastic friends to help me. Helping others is rewarding. Looking forward to it...

[ Last edited by czl1378 on 2009-4-6 at 06:26 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
BC +1 2009-04-07 08:58
Floor 24 Posted 2009-04-06 12:05 ·  中国 上海 杨浦区 电信
高级用户
★★★
Credits 916
Posts 377
Joined 2004-03-08 00:00
22-year member
UID 19523
Gender Male
Status Offline
During the period of learning to make boot disks, I have seen many boot disks and finally had to make my own and use the boot disk I made. Because most boot disks don't have a good interface, so many things don't know what their functions are and how to use them.

Of course, the interface shouldn't just be simple confirm and cancel operations. If you have seen bart's networkbootdisk, it uses wbat to make an interactive interface with users, which can set IP workgroups, login accounts, so such an interface is of course popular, but it takes a lot of time.
Floor 25 Posted 2009-04-06 13:11 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
The interface is done, but... I don't know how to describe it.



Can you operate with the up and down arrows?

Can you close it by clicking the X with the mouse?

2. When the user needs to choose, pop up a selection box:
┌───────────────────┐
│Are you sure? │
│ │
│ OK Cancel │
└───────────────────┘

I really want to click OK...

But at most I can only press y.
And your such interface? What do I press to confirm?

Anyway, I feel it's a bit useless...

Moreover, I don't think this is called an interface...

At most it's a beautiful menu.

If you want an interactive menu, it's still quite important.

The most crucial thing is efficiency. For example, color, you can change it with findstr, is the efficiency good?

color is just okay to use.

Also, is there a need to introduce third parties? choice is so good, it's depressing that XP doesn't have it built-in...
Compared to doing things like color, choice is more practical than these, but with it, I feel about portability...
So it's still not user-friendly, let the user press Enter.
Actually, it also has its own advantages... You can backspace and retype...
If you click the wrong choice with choice... and there are multi-character input, etc....


If you want it to look good, why use batch processing?
I think people who use bat still rely on its convenience.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
HAT +8 2009-04-07 02:19
S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore
Floor 26 Posted 2009-04-07 06:48 ·  中国 湖北 武汉 电信
初级用户
★★
Credits 161
Posts 114
Joined 2009-02-20 13:00
17-year member
UID 139375
Gender Male
Status Offline
To Brother slore:

Regarding the problem you mentioned...
I don't know if you have tested it. If not, please test first. If you have, maybe your machine doesn't support CKEY(But I think since COLR is supported, CKEY should be okay).
All more than 60 machines in our class tested and everything was normal, and tests on machines in each internet café were also normal.
Note: The source program runs very quickly on a machine with a 1.1G CPU and 128M memory. It takes less than 1 second to draw the entire interface. If everyone finds it runs very slowly, please first close some things that consume a lot of memory and CPU.

If it's really as you said, then I simply couldn't have made this batch processing, let alone post it online to waste everyone's time.

Now I will answer your several questions:


Can you operate with the up and down arrows?

2. When user needs to choose, a selection box pops up:
┌───────────────────┐
│Is it determined? │
│ │
│ Determine Cancel │
└───────────────────┘

I really want to click Determine...

But at most I can only press y.
And with your such interface? What do I press to be Determine?


Use the up and down arrows to move the selection box, press Enter to close, press ESC to return.


Can you close by clicking the cross with the mouse?


Clicking the cross with the mouse indeed can't close.
When this version was just made, it supported the mouse, and clicking the cross could close. Later, considering that supporting the mouse consumed too much CPU(CPU was always 100%), so mouse support was canceled.(You can see the sample supporting the mouse in a post of mine called "Imitating Vista Interface").


The most crucial is efficiency, such as color, can it be changed with findstr, is the efficiency good?


This is a problem I have always paid great attention to. If you have used "Xiao Qiang System Optimization Tool 1.0", you will find that versions 2.0 and 3.0 are much more efficient than version 1.0, and the efficiency of 3.0 is basically on a par with that of 2.0(Because the interface style is different, so the speed of drawing the interface 3.0 may be dozens of milliseconds slower than 2.0).
I also considered using FINDSTR, but when I found a batch processing that uses FINDSTR to color, I gave up this idea(The code is attached, transferred from Batch Processing Home). If according to this speed to draw the entire interface, it would take at least 5 seconds, and it's very inconvenient. Using COLR.EXE to draw the entire interface takes no more than 1 second, and coloring with COLR and drawing the selection box are very convenient, and the speed is also very fast.



Code of the batch processing using FINDSTR to color(Reaffirmation: Reprinted from Batch Processing Home):

@echo off& setlocal enabledelayedexpansion
set name=%~0& call :view
:start
set /p start=
if "%start%"=="1" goto liaotian
if "%start%"=="2" goto qqxiu
if "%start%"=="3" goto qzone
if "%start%"=="4" goto qqp
if "%start%"=="5" goto qqnews
cls
goto start
:liaotian
cls
set /p num1=Enter the QQ number to chat with:
echo.
echo.
echo ┌───────────────────┐
echo The QQ number you want to chat with is:%num1%
echo └───────────────────┘
echo.
echo.
echo ┌──────┐
echo │ 1. Return │
echo │ 2. Continue │
echo └──────┘
set /p no=
if "%no%"=="1" (cls&goto liaotian) else goto liaotian1
:liaotian1
start tencent://message/?uin=%num1%
cls
echo ┌──────────────────────────────────┐
echo │ │
echo │ If QQ didn't run normally, this program has automatically run a QQ program! │
echo │ │
echo │ If QQ program has run normally, do you want to continue running this tool! │
echo │ │
echo │ 1. Return 2. Exit │
echo │ │
echo └──────────────────────────────────┘
set /p what=
if "%what%"=="1" cls&goto start
if "%what%"=="2" exit
cls
goto start
:qqxiu
cls
set /p num2=Enter the QQ秀 number to view:
echo.
echo.
if "%num2%"=="" (goto qqxiu) else start %systemdrive%\progra~1\intern~1\IEXPLORE.EXE "http://qqshow-user.tencent.com/%num2%/10/00/"
cls
echo ┌──────┐
echo │ 1. Return │
echo │ 2. Exit │
echo └──────┘
set /p what1=
if "%what1%"=="1" cls&goto start
if "%what1%"=="2" exit
cls
goto start
:qzone
cls
set /p num3=Enter the QQ space number to enter:
echo.
echo.
if "%num3%"=="" (goto qzone) else start %systemdrive%\progra~1\intern~1\IEXPLORE.EXE "http://%num3%.qzone.qq.com/"
cls
echo ┌──────┐
echo │ 1. Return │
echo │ 2. Exit │
echo └──────┘
set /p what2=
if "%what2%"=="1" cls&goto start
if "%what2%"=="2" exit
cls
goto start
:qqp
cls
set /p qqp=Enter the QQ album number to view:
echo.
echo.
echo ┌───────────────────┐
echo The QQ number of the album you want to view is:%qqp%
echo └───────────────────┘
echo.
echo.
echo ┌──────┐
echo │ 1. Return │
echo │ 2. Continue │
echo └──────┘
set /p no1=
if "%no1%"=="1" (cls&goto qqp) else goto qqp1
:qqp1
start %systemdrive%\progra~1\intern~1\IEXPLORE.EXE "http://photo.qq.com/portal/albumMain.shtml?%23uin=%qqp%#uin=%qqp%"
cls
echo ┌──────┐
echo │ 1. Return │
echo │ 2. Exit │
echo └──────┘
set /p what4=
if "%what4%"=="1" cls&goto start
if "%what4%"=="2" exit
cls
goto start
:qqnews
cls
echo ┌───────┐
echo │  1. News  │
echo │  2. Return  │
echo │  3. Exit  │
echo └───────┘
set /p numnews=Please choose:
if "%numnews%"=="1" start %systemdrive%\progra~1\intern~1\IEXPLORE.EXE "http://minisite.qq.com/all/allinone.shtml"
if "%numnews%"=="2" cls & goto start
if "%numnews%"=="3" exit
if "%numnews%"=="" goto qqnews
cls
echo ┌──────┐
echo │ 1. Return │
echo │ 2. Exit │
echo └──────┘
set /p what3=
if "%what3%"=="1" cls&goto start
if "%what3%"=="2" exit
cls
goto start




:view
mode con cols=65 lines=25& title %time%
for %%1 in (0a 0e 0b 0b 0a 0c 0f 0b 0f 07 0c 0a 0e 0d)do (set /a snow+=1
set moon!snow!=%%1)
for /f "usebackq skip=138 delims=" %%1 in ("%name%")do (set /a wind+=1
set /a wind=wind%% 14+1
echo  >"%%~1"& call findstr /a:%%moon!wind!%% .* "%%~1"*& del="%%~1"& echo=)
pause>nul& goto start
┌────────────┐
│ Youyou QQ Assistant Special Use │
└────────────┘
┌──────────────────┐
│ 1. Force chat with someone │
│ 2. View someone's QQ秀 │
│ 3. Enter someone's QQ space │
│ 4. View someone's QQ album │
│ 5. View daily QQ news │
└──────────────────┘


I hope Brother slore can give me a reply as soon as possible. Because the problem you mentioned may cause many people's misunderstandings.
Also, please everyone download it first and test it before replying.
Download address:
http://upload.cn-dos.net/img/1392.rar


[ Last edited by czl1378 on 2009-4-7 at 11:03 ]
Floor 27 Posted 2009-04-07 07:00 ·  中国 湖北 武汉 电信
初级用户
★★
Credits 161
Posts 114
Joined 2009-02-20 13:00
17-year member
UID 139375
Gender Male
Status Offline
I have used WBAT.
At the beginning, I didn't know how to support Chinese, so I gave up. Then I started to make "Xiao Qiang System Optimization Tool", and "Xiao Qiang System Optimization Tool 1.0" was exactly modeled after the interface of WBAT.
A few days ago, I saw a post where WBAT can support Chinese:
http://www.cn-dos.net/forum/viewthread.php?tid=43795&fpage=1&highlight=&page=2
You can see my reply:

Black screen under WINDOWS XP...


And got in at home internet cafe again.

But no mouse support,? (WBAT can support mouse, right? Or there is a problem with my machine). Poor compatibility (on very similar machines, some can't get in, some get screen corruption, anyway, it's poor compatibility).


So I didn't plan to continue using WBAT. And WBAT seems to have departed from batch processing.? It's completely another language.

[ Last edited by czl1378 on 2009-4-7 at 07:04 ]
Floor 28 Posted 2009-04-07 08:58 ·  中国 四川 泸州 联通
高级用户
★★★
Credits 609
Posts 374
Joined 2006-08-02 22:38
19-year member
UID 59720
Status Offline
Do as you wish in the free world
Floor 29 Posted 2009-04-07 11:24 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
What I mean is the situation without third parties.

CKEY (but I think COLR can be like that, so CKEY should be okay).

I haven't downloaded anything that's not system-built-in...

If you can do it without third parties, and support arrow keys and mouse, then it's indeed suggested that you continue to work on it.

Downloaded...
There's an ext package... 668KB...

Or a batch file.
'colr' is not an internal or external command, nor is it a runnable program
Or a batch file.
'colr' is not an internal or external command, nor is it a runnable program
Or a batch file.
'colr' is not an internal or external command, nor is it a runnable program
Or a batch file.
'colr' is not an internal or external command, nor is it a runnable program
Or a batch file.
'colr' is not an internal or external command, nor is it a runnable program
Or a batch file.
'colr' is not an internal or external command, nor is it a runnable program
Or a batch file.
'colr' is not an internal or external command, nor is it a runnable program
Or a batch file.
'colr' is not an internal or external command, nor is it a runnable program
Or a batch file.
'colr' is not an internal or external command, nor is it a runnable program
Or a batch file.
'sleepx' is not an internal or external command, nor is it a runnable program
Or a batch file.
'colr' is not an internal or external command, nor is it a runnable program
Or a batch file.
'sleepx' is not an internal or external command, nor is it a runnable program
Or a batch file.
'colr' is not an internal or external command, nor is it a runnable program
Or a batch file.

Looked at the code, it's to judge systemroot...

Since it's brought, use the relative path to call ext.

So the porting problem caused by third parties is very serious. The code we generally write can be used by just copying and saving. Those with third-party P processing must be downloaded...

If third parties are allowed? Just use third parties. Write an XX.EXE in the.bat.

=。= Lost the meaning of P.

Using findstr for coloring is inefficient, but it's innovative. Those who write that kind of code are not for application, but to break through the black and white limit of bat, which belongs to research. If it's forced to be applied in practice... I think it's a bit nitpicky.

The focus is off.

The menu just needs to be simple and easy to understand so that people can operate it. Of course, making it beautiful is not wrong...


Hope you can understand what the purpose of using scripts is for everyone?
Personally, I'm because of convenience. If third parties are introduced, it must be inconvenient. If the script can't be completed, just don't use the script.

And these third parties may only be used by some programs, and generally not used at all, which feels a bit not worth it.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
BC +1 2009-04-09 09:26
S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore
Floor 30 Posted 2009-04-07 20:41 ·  中国 湖北 武汉 电信
初级用户
★★
Credits 161
Posts 114
Joined 2009-02-20 13:00
17-year member
UID 139375
Gender Male
Status Offline

If you can do it without third-party situations, supporting the direction keys and mouse, then it is indeed suggested that you continue to do it.


If it is said that it can be done without using third-party programs, it is impossible. The color problem may be solved with FINDSTR, but the keyboard key problem... must use CKEY.


I hope the brother can understand what is the purpose of everyone using the script?
Personally, it's because of convenience. If third parties are introduced, it must be inconvenient. If the script can't be completed, just don't use the script.

And these third parties may only be used in certain programs, and they are not used at all in general situations. It feels a bit not worth it.


So this is involved in the question of whether to use third-party programs. Should there be a vote: "Should third-party programs be used?"...

This problem is very difficult to explain clearly. Some people say: "As long as the purpose is achieved, I don't mind whether third-party programs are used", which I think is very right. In addition, what brother slore said, I also think it makes sense.

Many application programs also need DLLs and so on. The role of third-party command programs is similar to DLLs. If you just make an installation package to release third-party command programs... then it involves the problem of installation... Maybe many people will discuss again: "Does a small batch have to make an installation package? This is divorced from the essence of the batch"... Regarding the question of "whether the batch needs to make an installation package"... Do you need to launch a vote again?

So this is simply an entanglement problem. Otherwise, why have I been very troubled?
Forum Jump: