lock and shutdown windows by batch files
来源:互联网 发布:美剧尺度排行 知乎 编辑:程序博客网 时间:2024/05/14 21:34
I have find a easy to lock the windows by writing a batch file. And the batch file contains only two line as follow,
lock.bat
@echo off
rundll32.exe user32.dll,LockWorkStation
one thing I want to inform is that the lock.bat must have excutive attribute.
To make it easy to use, I suggest you put the lock.bat file to the desktop, and when you want to lock the computer, you just have to double click the batch file, and everything will be done for you.
[this batch file has been tested on Windows XP professional edition with sp2]
And also you can write a batch file to shutdown the windows as follow,
shutdown.bat
@echo off
rundll32.exe user32.dll,ExitWindows
or
shutdown.bat - this batch file can only be run on windows XP or later version
@echo off
shutdown -s -f -t 00
lock.bat
@echo off
rundll32.exe user32.dll,LockWorkStation
one thing I want to inform is that the lock.bat must have excutive attribute.
To make it easy to use, I suggest you put the lock.bat file to the desktop, and when you want to lock the computer, you just have to double click the batch file, and everything will be done for you.
[this batch file has been tested on Windows XP professional edition with sp2]
And also you can write a batch file to shutdown the windows as follow,
shutdown.bat
@echo off
rundll32.exe user32.dll,ExitWindows
or
shutdown.bat - this batch file can only be run on windows XP or later version
@echo off
shutdown -s -f -t 00
- lock and shutdown windows by batch files
- pid and lock files
- Implement Lock files on Windows
- windows batch file : backup the SAM files
- 读书笔记---windows startup and shutdown
- Batch Files
- Unlock files in batch
- speed improvement by merging batch normalization and scale
- bat cmd shutdown lock
- Jenkins ssh to windows,and excute windows batch
- Sharing files between windows and linux
- Converting text files between Unix and Windows
- How to launch Windows applications (Notepad) / Call Batch files from a C#/.NET console application.
- FTP commands for batch files
- DEAD LOCK AND LOCK
- Make your pages load faster by combining and compressing javascript and css files
- Migrating files between NTFS on Windows XP and Solaris 10
- samba share files between windows and ubuntu LINUX 文件共享
- c#爱好者请留下QQ,,,
- 添加到收藏夹和设置首页代码大全
- Web Services是什么?
- 老总给大学生的十八条忠告
- 新的开始
- lock and shutdown windows by batch files
- 迷上武汉才女段思思了
- IBATISNETNET 1.3 开发指南系列文章
- 病毒常用技术之远程线程
- When We Two Parted
- Top 10 Sad Love Quotes
- 韩磊-【钢铁的心】《铁色高原》
- ADO 实现ACCESS文本型自动连续编号
- 维护一个混合系统真不容易呢