Search code examples
servicebatch-filestartupvlcwindows-7-x64

Run Batch File Before Windows 7 User Login to Start VLC Web Interface


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

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.

Any ideas?


Solution

  • 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. Open the Windows Task Scheduler.
    2. Create a basic task.
    3. Name it whatever you want, such as VLC Web Interface.
    4. Click Next, and choose When the computer starts.
    5. Click Next, and choose Start a program.
    6. Click Next, and click Browse, then select your batch script.
    7. Click Next, and click Finish.

    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).