中国DOS联盟论坛

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-09-23 13:56
47,812 topics / 349,917 posts / today 0 new / 48,273 members
DOS批处理 & 脚本技术(批处理室) » [Help] Batch processing cannot change the window style
Printable Version  4,791 / 0
Floor1 snai9 Posted 2020-11-16 14:37
新手上路 Posts 1 Credits 4
I made some time ago a stripped-down version of PE. I just wanted it to do one thing: after booting, use the batch file startnet.cmd to find the backup file sn.sna in the snap directory of the last partition, and use snapshot.exe to restore the system. But the black window of startnet.cmd wasn't too nice. Since startnet.cmd is special in PE, as soon as it exits, PE will restart. So I simply wanted to make it look nicer, so I added statements to change the window size. But in PE, it prompted "mode is not a valid external command...", realizing that mode.com might have been stripped down. So I copied the normal mode.com file to my PE. This time there was no error, but the window was still that big black window. mode.com didn't seem to work. I guessed there were other things stripped down. I searched online but didn't find anything. So I had to come here to ask you all for help. Please take some time and give me some pointers.

Attached is my code. See if there's any room for optimization.



[ Last edited by snai9 on 2020-11-16 at 14:39 ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023