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-06-25 06:49
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to make the bat execute in the background of the Windows login screen View 2,820 Replies 11
Original Poster Posted 2009-03-19 03:58 ·  中国 广东 深圳 电信
新手上路
Credits 7
Posts 5
Joined 2009-03-13 10:49
17-year member
UID 141227
Gender Male
Status Offline
Hello everyone:

Recently, I encountered such a problem: I wrote a bat file, originally wanting this file to run automatically after the machine restarts without supervision. However, after the Windows Server 2003 system starts, a login box that asks to press Ctrl+Alt+Del to log in always pops up. In this way, if there is no supervision, the Windows system cannot enter, and this bat will definitely not execute automatically. So, I would like to ask everyone, is there a good way to make the program in this bat execute automatically when the login box appears? If there is, please tell me the specific method, okay?

Thanks a lot... Thank you.
Floor 2 Posted 2009-03-19 05:06 ·  中国 上海 东方有线
中级用户
★★
Credits 484
Posts 250
Joined 2007-06-05 23:33
19-year member
UID 90372
Gender Male
Status Offline
Two ideas:
1/ Make the bat a service call
2/ Set 2003 to log in automatically
The rest doesn't need to be stated explicitly, just Google it yourself
Floor 3 Posted 2009-03-19 05:30 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
It's not that complicated. Set up a scheduled task to get it done.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 4 Posted 2009-04-01 19:18 ·  中国 福建 厦门 电信
初级用户
Credits 97
Posts 45
Joined 2007-01-31 06:02
19-year member
UID 78190
Gender Male
Status Offline
In the XP Group Policy, there is a startup script. It should also be available in Windows Server 2003, right?
Floor 5 Posted 2009-04-02 01:30 ·  中国 上海 电信
高级用户
★★★
Credits 916
Posts 377
Joined 2004-03-08 00:00
22-year member
UID 19523
Gender Male
Status Offline
In Group Policy, there are scheduled tasks that execute at startup. Additionally, run "control userpasswords2" to perform automatic login to the desktop, then run in the Start menu, and then set screen saver password protection to lock the desktop regularly.
Floor 6 Posted 2009-04-02 02:38 ·  中国 福建 泉州 晋江市 电信
银牌会员
★★★
Credits 1,276
Posts 469
Joined 2002-12-23 13:00
23-year member
UID 586
Gender Male
From 福建泉州
Status Offline
Group policy also has the one that executes on login (executes when the user logs in). Scheduled tasks can also.
QQ:366840202
http://chenall.net
Floor 7 Posted 2009-04-03 05:59 ·  中国 湖南 郴州 电信
新手上路
Credits 4
Posts 4
Joined 2008-11-06 22:50
17-year member
UID 130232
Gender Male
Status Offline
Can you lock after automatically logging in and running the batch processing?
Floor 8 Posted 2010-09-01 19:31 ·  中国 上海 电信
初级用户
★★
Credits 75
Posts 75
Joined 2009-10-23 10:23
16-year member
UID 153553
Gender Male
Status Offline
Originally posted by dato at 2009-4-2 01:30:
There are startup execution in Group Policy
Scheduled Tasks

Additionally, run control userpasswords2 to automatically log in to the desktop, then run in Start, and then set the screen saver password protection to lock the desktop regularly



I just used this method
Automatically log in to the desktop, then run in Start, and then set the screen saver password protection to lock the desktop regularly
Floor 9 Posted 2010-12-17 20:14 ·  中国 云南 曲靖 电信
新手上路
Credits 13
Posts 11
Joined 2009-01-24 00:28
17-year member
UID 137340
Gender Male
Status Offline
Learning
Floor 10 Posted 2010-12-17 23:50 ·  中国 广东 佛山 顺德区 电信
初级用户
★★
Credits 151
Posts 106
Joined 2009-10-09 21:24
16-year member
UID 152856
Gender Male
From 河南省
Status Offline
How to explain turning a bat into a service call?
Floor 11 Posted 2010-12-23 00:07 ·  中国 江西 九江 电信
初级用户
Credits 28
Posts 28
Joined 2010-07-28 11:06
15-year member
UID 171355
Gender Male
Status Offline
Set shell = Wscript.createobject("wscript.shell")
a = shell.run ("名字.bat",0)

Save as .vbs format is okay.
Floor 12 Posted 2010-12-25 11:20 ·  中国 广东 东莞 中移铁通
初级用户
★★
Credits 115
Posts 92
Joined 2010-12-24 16:57
15-year member
UID 179794
Gender Male
Status Offline
Forum Jump: