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-08-01 14:45
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 200 Boot autoexec.bat View 1,863 Replies 6
Original Poster Posted 2005-08-19 12:56 ·  中国 山东 泰安 泰山区 联通
新手上路
Credits 9
Posts 4
Joined 2005-08-19 12:52
20-year member
UID 41787
Status Offline
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 ]
Floor 2 Posted 2005-08-19 14:11 ·  中国 福建 福州 电信
元老会员
★★★
农民
Credits 2,903
Posts 991
Joined 2003-07-23 00:00
23-year member
UID 7391
Gender Male
From 福建省
Status Offline
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...
艰难奋长戟,万古用一夫

中国DOS联盟 http://www.cn-dos.net 欢迎大家来共同学习
我的MSN&E-Mail cn_archer@hotmail.com QQ 56049418
Floor 3 Posted 2005-08-19 14:39 ·  中国 广东 广州 白云区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
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.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 4 Posted 2005-08-19 15:33 ·  中国 重庆 沙坪坝区 电信
高级用户
★★
Credits 772
Posts 273
Joined 2004-10-23 00:00
21-year member
UID 32861
Gender Male
Status Offline
You can also use a startup script to hide the DOS window
http://www.msfans.net/bbs/
Floor 5 Posted 2005-08-19 16:18 ·  中国 山东 泰安 泰山区 联通
新手上路
Credits 9
Posts 4
Joined 2005-08-19 12:52
20-year member
UID 41787
Status Offline
Originally posted by JonePeng at 2005-8-19 14:39:
In addition to the method using vbs, you can also create a shortcut of this batch file, place it in the startup folder, then right-click on the shortcut, select "Properties", change the "Run style" to "Minimized", and confirm...


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$.
Floor 6 Posted 2005-09-22 00:23 ·  中国 河南 驻马店 联通
初级用户
★★
Credits 175
Posts 64
Joined 2005-09-15 14:40
20-year member
UID 42531
Gender Male
Status Offline
Why doesn't my autoexec.bat run automatically at boot in DOS? I installed DOS using the copy method. Master, why is that?
Floor 7 Posted 2005-09-22 09:50 ·  中国 江苏 苏州 常熟市 电信
初级用户
Credits 26
Posts 8
Joined 2005-09-16 17:11
20-year member
UID 42565
Gender Male
Status Offline
Originally posted by JonePeng at 2005-8-19 14:39:
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 on the shortcut, select "Properties", change the "Run style" to "Minimized", and confirm...

This works. You can't see the running interface.
Forum Jump: