|
xinlingwuyu
新手上路

积分 7
发帖 5
注册 2009-3-13
状态 离线
|
『楼 主』:
怎么让bat在windows的登陆框后台执行呢
使用 LLM 解释/回答一下
大家好:
最近遇到这样的一个问题:我写了一个bat文件,本来想让这个文件在无人监管的情况下,机器重启后进入系统自动运行,可是windows server2003系统启动之后,总是弹出一个让按ctrl+alt+del再登陆的登陆框,这样,如果没有人监管的情况下,windows系统进不去,这个bat肯定也不会自动执行,所以,想请问一下大家,有没有一种好的方法,让这个bat里面的程序,在登陆框出来的时候也能自动执行呢。如果有的话,麻烦你告诉我一下具体的方法,好吗?
不胜感激。。。谢谢。
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.
|
|
2009-3-19 03:58 |
|
|
pooronce
中级用户
  
积分 484
发帖 250
注册 2007-6-5
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
两个思路:
1/ 把bat弄成服务调用
2/ 设定2003自动登陆
剩下的就不用明说了,自己google吧
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
|
|
2009-3-19 05:06 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
没这么复杂
设置一个计划任务搞定
It's not that complicated. Set up a scheduled task to get it done.
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2009-3-19 05:30 |
|
|
csx163
初级用户
 
积分 97
发帖 45
注册 2007-1-31
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
XP组策略里有个开机脚本,03里应该也有吧
In the XP Group Policy, there is a startup script. It should also be available in Windows Server 2003, right?
|
|
2009-4-1 19:18 |
|
|
dato
高级用户
   
积分 916
发帖 377
注册 2004-3-8
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
组策略里有开机执行的
计划任务
另外就是运行 control userpasswords2 执行自动登入到桌面,然后开始里运行,再设置屏保密码保护定时锁定桌面
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.
|

http://dato.ys168.com
google search bot
http://dato.minidns.net/ |
|
2009-4-2 01:30 |
|
|
chenall
银牌会员
    
积分 1276
发帖 469
注册 2002-12-23 来自 福建泉州
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
组策略也有登录执行的(用户登录时执行).
计划任务也可以.
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 |
|
2009-4-2 02:38 |
|
|
eva
新手上路

积分 4
发帖 4
注册 2008-11-6
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
可不可以在自动登陆并运行批处理之后在进行锁定?
Can you lock after automatically logging in and running the batch processing?
|
|
2009-4-3 05:59 |
|
|
czweb
初级用户
 
积分 75
发帖 75
注册 2009-10-23
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Originally posted by dato at 2009-4-2 01:30:
组策略里有开机执行的
计划任务
另外就是运行 control userpasswords2 执行自动登入到桌面,然后开始里运行,再设置屏保密码保护定时锁定桌面
我就是用的这个方法
执行自动登入到桌面,然后开始里运行,再设置屏保密码保护定时锁定桌面
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
|
|
2010-9-1 19:31 |
|
|
vte8689
新手上路

积分 13
发帖 11
注册 2009-1-24
状态 离线
|
|
2010-12-17 20:14 |
|
|
zaixinxiangnian
初级用户
 
积分 151
发帖 106
注册 2009-10-9 来自 河南省
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
把bat弄成服务调用
这个怎么解释啊
How to explain turning a bat into a service call?
|
|
2010-12-17 23:50 |
|
|
wangyang331407
初级用户
 
积分 28
发帖 28
注册 2010-7-28
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
Set shell = Wscript.createobject("wscript.shell")
a = shell.run ("名字.bat",0)
保存为.vbs 格式就可以。
Set shell = Wscript.createobject("wscript.shell")
a = shell.run ("名字.bat",0)
Save as .vbs format is okay.
|
|
2010-12-23 00:07 |
|
|
acaigg
初级用户
 
积分 115
发帖 92
注册 2010-12-24
状态 离线
|
|
2010-12-25 11:20 |
|