![]() |
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 16:26 |
47,812 topics / 349,917 posts / today 0 new / 48,273 members |
| DOS批处理 & 脚本技术(批处理室) » 200 Boot autoexec.bat |
| Printable Version 1,972 / 6 |
| Floor1 cls | Posted 2005-08-19 12:56 |
| 新手上路 Posts 4 Credits 9 | |
|
I want to add "net share ipc$ /del" into this batch script and put it into the startup items, but every time I boot up, the DOS window flashes. How can I make this batch script run in the background without showing? I remember there's a parameter in DOS, but I forgot. Besides using the VBS method, are there other methods?
[ Last edited by cls on 2005-8-19 at 13:01 ] |
|
| Floor2 cn_archer | Posted 2005-08-19 14:11 |
| 元老会员 Posts 991 Credits 2,903 From 福建省 | |
|
ECHO OFF
Should be this one. But this command doesn't seem to block the DOS window. Using NET SHARE IPC$/DELETE >NULL Redirect relevant information to the null device, the effect may be better. But I don't know if the DOS window will still flash out like this. After all, this command only blocks the information, and it doesn't seem to block the DOS window... |
|
| Floor3 JonePeng | Posted 2005-08-19 14:39 |
| 金牌会员 Posts 1,883 Credits 4,562 From 广东广州 | |
|
In addition to using the VBS method, you can also create a shortcut of this batch file, place it in the startup folder, then right-click the shortcut, select "Properties", change the "Run style" to "Minimized", and click OK. In the future, when you start this shortcut, the DOS window will no longer pop up on the desktop but will be hidden in the taskbar, and it will disappear from the taskbar when the operation is finished.
Also, you don't need to use the batch file to disable IPC$ every time you start the computer. You can make a small modification in the registry to completely disable the IPC connection. Run REGEDIT, find the restrictanonymous subkey in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa, and change its value to 1. |
|
| Floor4 chenhui530 | Posted 2005-08-19 15:33 |
| 高级用户 Posts 273 Credits 772 | |
|
You can also use a startup script to hide the DOS window
|
|
| Floor5 cls | Posted 2005-08-19 16:18 |
| 新手上路 Posts 4 Credits 9 | |
Originally posted by JonePeng at 2005-8-19 14:39: Now it's just 1. It seems that the IPC$ cannot be deleted. I used the "Disable Sharing" in WinOptimizer, but it can only remove the sharing of C$ D$ and other drive letters, not the IPC$. |
|
| Floor6 hetao | Posted 2005-09-22 00:23 |
| 初级用户 Posts 64 Credits 175 | |
|
Why doesn't my autoexec.bat run automatically at boot in DOS? I installed DOS using the copy method. Master, why is that?
|
|
| Floor7 yhcamel | Posted 2005-09-22 09:50 |
| 初级用户 Posts 8 Credits 26 | |
Originally posted by JonePeng at 2005-8-19 14:39: This works. You can't see the running interface. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |