Windows 10: Batch file to restart app after wake

Discus and support Batch file to restart app after wake in Windows 10 Software and Apps to solve the problem; Hi all, I've got a htpc app that uses media files on a separate server. When I wake the htpc from standby, the app does not pick up the networked files... Discussion in 'Windows 10 Software and Apps' started by Stricko, Sep 15, 2023.

  1. Stricko Win User

    Batch file to restart app after wake


    Hi all, I've got a htpc app that uses media files on a separate server. When I wake the htpc from standby, the app does not pick up the networked files correctly if for example the server itself has gone into standby. I'd like to automatically close the app, either before the htpc goes into standby, or when it wakes. I can then reopen it on wake. Reopenng the app restablishes the network connections, including waking the server if necessary. I was planning to use a .bat file triggered by the wake, which I've got running. But I'm struggling to get the app to close. I've tried various ideas, i

    :)
     
    Stricko, Sep 15, 2023
    #1
  2. oily_17 Win User

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Sep 15, 2023
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Sep 15, 2023
    #3
  4. monim1 Win User

    Batch file to restart app after wake

    EMUI

    Here's the steps to update EMUI 4.1.1 to 5.0 :
    • Download the EMUI 5.0(desired version) .zip file, and unzip it.
    • Place the .hwt file in the HWThemes folder from your phone.
    • Using the Themes app, apply the new theme.
    • Restart the phone, in order to see all the new changes.
    And you’re done!
     
    monim1, Sep 15, 2023
    #4
Thema:

Batch file to restart app after wake

Loading...
  1. Batch file to restart app after wake - Similar Threads - Batch file restart

  2. Batch File

    in Windows 10 Gaming
    Batch File: Hi, I am trying to create a batch file to determine whether a user account is signed on.I don't have enough experience to get it to @Echo it worked. Any advice please.Batch file:REM Query whether user SBackup is active@echo onsetlocal enabledelayedexpansionset...
  3. Batch File

    in Windows 10 Software and Apps
    Batch File: Hi, I am trying to create a batch file to determine whether a user account is signed on.I don't have enough experience to get it to @Echo it worked. Any advice please.Batch file:REM Query whether user SBackup is active@echo onsetlocal enabledelayedexpansionset...
  4. Batch file to restart app after wake

    in Windows 10 Gaming
    Batch file to restart app after wake: Hi all, I've got a htpc app that uses media files on a separate server. When I wake the htpc from standby, the app does not pick up the networked files correctly if for example the server itself has gone into standby. I'd like to automatically close the app, either before the...
  5. Batch Files

    in Windows 10 Gaming
    Batch Files: How do i make it that my batch file puts itself in to startup https://answers.microsoft.com/en-us/windows/forum/all/batch-files/6156404d-20d4-4f58-bee5-14629dbf7b10
  6. Batch Files

    in Windows 10 Software and Apps
    Batch Files: How do i make it that my batch file puts itself in to startup https://answers.microsoft.com/en-us/windows/forum/all/batch-files/6156404d-20d4-4f58-bee5-14629dbf7b10
  7. Restart a specific program with a batch file

    in Windows 10 Ask Insider
    Restart a specific program with a batch file: I have to restart Windows Audio Device graph multiple times a day to the point that I just want to map a button on my stream deck to end the task. Is there a way to create a shortcut to end the task? I've tried taskkill /f /im audiodg.exe but that was unsuccessful. Any ideas?...
  8. Create batch files with Batch?

    in Windows 10 Software and Apps
    Create batch files with Batch?: How to create Batch and VBS files with Batch? So I write a batch file which I then convert to exe that creates new folders in a certain directory and then creates batch and VBS files with a certain content and saves them in the created folder. So it's similar to a program...
  9. Batch Files

    in Windows 10 Network and Sharing
    Batch Files: I want to make a batch file that will copy a specific folder from my USB stick to a folder on C:\ I want to know if it's possible to make a batch file that will take the folder from my USB drive no matter what the drive's letter is....
  10. Batch File

    in Windows 10 Support
    Batch File: I need a batch file to create a folder with sub folders. The sub folders will be named the current date, they will go in a folder on c drive. For example we can call the folder test and it would be in documents on c drive. Every time we run the batch file it would create a...