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

后端 未结 2 929
自闭症患者
自闭症患者 2021-02-10 12:47

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\\         


        
2条回答
  •  攒了一身酷
    2021-02-10 13:27

    Create a local group policy object for a startup script.

    Start up scripts run pre login.

    To create what you are after:

    • Open a run box
    • type in "gpedit.msc" (without the quotes)
    • Expand Computer Configuration
    • Expand Windows Settings
    • Select Scripts (Startup/Shutdown)
    • Double click Startup
    • Click Show Files and copy/paste your batch file in to this folder
    • Click the Add button on the startup properties
    • Click Browse and double click on your script to choose it.
    • "OK" out of all windows to apply the new settings.

    The selected script will now run every time the PC starts. If the PC is part of a Windows Active Directory domain these settings will be overridden with AD Group Policy, in which case the admin of the network should be doing this for you.

    Edit: It's been a few years since I wrote this, while this would work, it's probably simpler to go with Automate Everything's answer and use Task Scheduler to perform an "At Startup" action.

提交回复
热议问题