![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-03 16:13 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] How to generate a checkbox on a web page and return it to the CMD according to the user's selection |
| Printable Version 2,249 / 27 |
| Floor1 HUNRYBECKY | Posted 2007-02-19 23:06 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
First of all, I wish everyone a happy new year, good health, peace and happiness every day.
Today I'm bored with nothing to do, so I come online and want to ask a question: batch installation of green software. I used FOR /F "DELIMS=" %%I IN ('DIR /S/B *G.EXE') DO ECHO %%I to obtain the paths of all green software that need to be installed (the EXE files whose last character is G at the end). Although I obtained the green software, I want users to select and install according to this list. How to achieve it? Pure DOS seems not possible. I want to generate an HTML file through CMD because checkboxes can be used in HTML files, and users can select which software to install according to these checkboxes. But how to achieve it? I know nothing about HTML programming. So I can only ask you brothers to give more opinions. (I saw before "Who said that the batch processing interface is not beautiful, and I want such an effect.") My batch processing content is as follows (note that IPATH is the decompression path used in the RAR compression in advance, and can be set in the batch processing to make RAR recognizable): [ Last edited by HUNRYBECKY on 2007-2-28 at 05:02 AM ] |
|
| Floor2 HUNRYBECKY | Posted 2007-02-19 23:25 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
It seems there are very few people today, so I'll bump it myself.
|
|
| Floor3 HUNRYBECKY | Posted 2007-02-20 00:07 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
Under the top, the previous post about the beautiful IE interface seems to have been deleted. It's not possible to download it for learning.
|
|
| Floor4 HUNRYBECKY | Posted 2007-02-20 02:54 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
Well, still waiting. It seems there are more people asking questions today. The experts have all gone home for the New Year :-)
|
|
| Floor5 HUNRYBECKY | Posted 2007-02-27 23:36 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
Maybe I didn't express it very clearly, let me explain.
I used the FOR command to obtain the list of portable software to be installed into a text file OK.TXT I want to let the user choose which portable software to install according to the content of OK.TXT, but it's cumbersome and not very beautiful directly in CMD, so I want to use a web form like "Who said batch processing interface is not beautiful" to generate a series of checkboxes according to the items in OK.TXT, then the user can choose freely, and then return the user's choice to CMD. I don't know if I have made it clear like this. Here is an effective example: http://www.blabla.cn/html_examples/056_form_input_check_checked.html [ Last edited by HUNRYBECKY on 2007-2-28 at 04:51 AM ] |
|
| Floor6 vkill | Posted 2007-02-27 23:53 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
If it's about HTML, then I don't know.
|
|
| Floor7 HUNRYBECKY | Posted 2007-02-28 00:39 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
Well, Brother ZH159 said that someone said batch processing is not beautiful. It is implemented using BAT + VBS + HTML, and the effect is quite good. But I don't know the HTML syntax, so it's more troublesome. I hope experts who know HTML can answer.
|
|
| Floor8 HUNRYBECKY | Posted 2007-02-28 05:03 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
There has been no one to answer. Is it a bit difficult, or for other reasons? Those who pass by, give some opinions.
|
|
| Floor9 zh159 | Posted 2007-02-28 11:43 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
I'm busy now. I'll write a paragraph when I have free time a few days later.
|
|
| Floor10 HUNRYBECKY | Posted 2007-03-01 00:41 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
Thanks. Understand. But which program of yours am I researching now
|
|
| Floor11 slore | Posted 2007-03-01 01:35 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
Originally posted by HUNRYBECKY at 2007-2-27 11:39: Strictly speaking, is that batch processing? It calls... That's just an IE interface... that's all. Can a single batch be used? Batch can run exe. I don't know if it can be said that batch processing can be used for battle, video... and so on when running a cs, qq, war3. |
|
| Floor12 zh159 | Posted 2007-03-01 02:23 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
Batch processing is originally a collection of commands (internal commands, external commands), and various commands are called to complete the intended tasks.
|
|
| Floor13 HUNRYBECKY | Posted 2007-03-04 00:31 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
Ask if it is possible to use FRAME to divide a web page into three parts. The first part is the page header, with a specified size and showing important information. The second part is the content, which displays a scrollbar according to the amount of content. The third part is the page footer, displaying other information. How to implement this in VBS?
For the code below, why does writing text directly in the LEFT of FRAME have no effect: [ Last edited by HUNRYBECKY on 2007-3-4 at 03:41 AM ] |
|
| Floor14 zh159 | Posted 2007-03-04 06:14 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
This still needs to be connected to two HTML files in
<frame name="left" src="HTML file 1"> <frame name="right" src="HTML file 2"> to be effective Write something simpler (delete two lines "goto min" by yourself, and change the following call echo start /w "%%%%i%%" to call start /w "%%%%i%%") [ Last edited by zh159 on 2007-3-3 at 09:24 PM ] |
|
| Floor15 HUNRYBECKY | Posted 2007-03-07 00:09 |
| 银牌会员 Posts 442 Credits 1,179 | |
Originally posted by zh159 at 2007-3-4 06:14: Thank you, Brother ZH for the answer. Currently, I am learning HTML programming. I have basically got the program done, but there is still a problem. The above-mentioned how to fix the header and footer on the same page. Using the FRAME method requires another two pages, which is very troublesome. So is there any other way to solve it? Does the FRAME really not solve it? Can it be realized by directly referencing the child FRAME in the parent FRAME for programming? If it is not solved, it is really ugly. The following is the VBS code, save it as VBS and everyone can test it. [ Last edited by HUNRYBECKY on 2007-3-7 at 01:08 AM ] |
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |