![]() |
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 13:52 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] Batch file won't run (can't spot the error) |
| Printable Version 1,024 / 9 |
| Floor1 8j | Posted 2007-02-06 20:33 |
| 新手上路 Posts 7 Credits 17 | |
|
Could everyone please help me take a look, where is the error in this batch file below?
Batch file 1: @echo off cls echo ╔------------------------------------------╗ echo 123456 pause exit It's this simple, yet it still won't run. It's driving me crazy, I just can't see what's wrong, Batch file 2: @echo off cls echo ╔------------------------------------------╗ echo ┆ Thank you for your cooperation! ┆ echo ┆ Virus removal successful! ┆ echo ┆ By:八戒 ┆ echo ╚------------------------------------------╝ color 0d pause :end But this batch file 2 works fine and displays normally. Why is it that batch file 1 just flashes a black screen and disappears? I just can't see what's wrong no matter how I look, I feel like crying~ Experts, save me [ Last edited by 8j on 2007-2-6 at 07:40 AM ] |
|
| Floor2 8j | Posted 2007-02-06 20:36 |
| 新手上路 Posts 7 Credits 17 | |
|
I worked on it for a long time. Originally I wanted to make a batch file that imports the registry,
then this problem came up, I kept simplifying the batch file, and in the end it became this simple, and it still doesn't work, I'm going crazy, |
|
| Floor3 NaturalJ0 | Posted 2007-02-06 21:05 |
| 银牌会员 Posts 533 Credits 1,181 | |
|
It runs completely normally for me, I see this.
╔------------------------------------------╗ 123456 Press any key to continue. . . |
|
| Floor4 namejm | Posted 2007-02-06 21:51 |
| 荣誉版主 Posts 1,737 Credits 5,226 From 成都 | |
|
Did you save the first BAT as a Unicode-format file?
|
|
| Floor5 6622186 | Posted 2007-02-18 15:06 |
| 高级用户 Posts 411 Credits 894 | |
|
No problem
|
|
| Floor6 PPdos | Posted 2007-02-18 15:37 |
| 高级用户 Posts 268 Credits 783 | |
| Floor7 juventusryp | Posted 2007-02-19 08:18 |
| 初级用户 Posts 40 Credits 88 | |
|
It displays completely normally on my side too.........
|
|
| Floor8 ZJHJ | Posted 2007-02-19 10:07 |
| 高级用户 Posts 374 Credits 609 | |
|
No problem, it displays normally
|
|
| Floor9 yangzhiyi | Posted 2007-02-20 05:08 |
| 中级用户 Posts 123 Credits 261 | |
|
No need to say it, you definitely saved the first BAT as a Unicode-format file
|
|
| Floor10 htysm | Posted 2007-02-22 06:24 |
| 高级用户 Posts 415 Credits 866 | |
|
Batch files can be pretty "tricky" sometimes too.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |