在Windows 7用户登录之前运行批处理文件以启动VLC Web界面 [英] Run Batch File Before Windows 7 User Login to Start VLC Web Interface

查看:100
本文介绍了在Windows 7用户登录之前运行批处理文件以启动VLC Web界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想运行一个批处理文件,该批处理文件在用户登录之前执行以下操作:

I would like to run a batch file I have that executes the following before a user logs on:

start "VLC web Interface" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -I http

当前,我在Startup文件夹中有此文件,但我希望在用户登录Windows 7之前执行此批处理文件.目标是在不需要用户登录的情况下将VideoLAN的Web Interface作为服务启动.通过这种方式,可以打开计算机,并且可以在不选择登录屏幕上的用户配置文件的情况下将媒体流式传输到我的设备.

Currently I have this in my Startup folder but I would like this batch file to be executed before a user is logged in on Windows 7. The goal is to start VideoLAN's Web Interface as a service without requiring a user to login. This way the computer can be turned on, and media can be streamed to my devices without choosing a user profile on the login screen.

需要明确的是,我希望此批处理文件在用户登录之前运行,而不是之后运行.

To be clear, I would like this batch file to run BEFORE a user logs in, not after.

有什么想法吗?

推荐答案

上面的答案有效.但是,我对如何执行此操作的偏好会有所不同.效果大致相同,但我发现使用Task Scheduler会容易一些.

The answer above would work. However, my preference of how to do it would be a little different. The effect is more or less the same, but I find it a little easier to use the Task Scheduler.

  1. 打开Windows任务计划程序.
  2. 创建基本任务.
  3. 随意命名,例如VLC Web界面.
  4. 单击下一步",然后选择计算机启动时".
  5. 单击下一步",然后选择启动程序".
  6. 单击下一步",然后单击浏览",然后选择您的批处理脚本.
  7. 单击下一步",然后单击完成".

现在它将在计划任务的任务计划程序"列表中.从那里,您可以右键单击它并立即运行它,或结束它,或执行其他操作,它将在每次计算机启动时运行.不论是否在域上,任何用户都应该能够执行此操作,即使您使用的是Windows Home(在这种情况下,您也无法使用gpedit.msc).

It will now be in your Task Scheduler list of scheduled tasks. From there, you can right click on it and run it now, or end it, or whatever, and it will run every time the computer starts. Any user should be able to do this, whether on a domain or not, and even if you are using Windows Home (in which case you can't use gpedit.msc anyway).

这篇关于在Windows 7用户登录之前运行批处理文件以启动VLC Web界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆