Windows 10: Taskscheduler - .bat file doesnt execute after reboot

Discus and support Taskscheduler - .bat file doesnt execute after reboot in Windows 10 Software and Apps to solve the problem; Hello1. Due to some reasons, I need to reboot my win10 daily at 4 AM. Please dont comment on why I do this and try to convince me not to. This daily... Discussion in 'Windows 10 Software and Apps' started by AmitGholap, Apr 25, 2022.

  1. Taskscheduler - .bat file doesnt execute after reboot


    Hello1. Due to some reasons, I need to reboot my win10 daily at 4 AM. Please dont comment on why I do this and try to convince me not to. This daily reboot is non-negotiable.2. I have scheduled to run some .bat file at 430AM or so, once the reboot is completed. Unfortunately, the .bat file never executes. It always gives me 0x1 error in task scheduler.Could someone please guide to fix this issue?Thx.

    :)
     
    AmitGholap, Apr 25, 2022
    #1
  2. sc00VN Win User

    .bat file

    A batch file (.bat extension) is basically a series of commands to be executed by the command-line interpreter. When you open the file, your system runs every command stored in the file from top to bottom, once the final command has been executed, it closes
    itself indicating it has finished its job. However, everything happens so fast you think it closes immediately and that's completely normal.

    If you want the command-line interpreter window to remains open once the last command has been executed, I suggest you do the following:

    - Right click on the .bat file and click on the 'edit' button.

    - It will open a notepad displaying a series of commands.

    - Create a new line by hitting enter after the final text and type in 'pause' without quotes.

    - Save the file and run it. This time the window will remain open.
     
    sc00VN, Apr 25, 2022
    #2
  3. tomyfr Win User
    Executing a .bat file on CMD

    Hello all,

    For a programming process we need to execute a .bat file from CMD. I'm on Windows 10 x64. When I paste the path to the file and hit Enter, the message below is expected to show up:
    Setting up environment for Qt usage...

    It happened a time and when we wanted to restart the process, because of a problem, and re-execute that file, this message wasn't shown.
    Actually when I hit enter on CMD nothing is shown up and the cursor goes back to the previous path. In other words, the .bat file won't be executed to set up the environment.

    Does anyone know how to fix this and execute the file properly, please?
     
    tomyfr, Apr 25, 2022
    #3
  4. Taskscheduler - .bat file doesnt execute after reboot

    windows bat file

    I have a bat file which executes my executable jar file. The first thing the java program does is check to see if a lock exists on a particular file. The reason for this is that I only want 1 instance of my java program running. This works fine if I execute
    my jar file from the command line, ie without a .bat file.

    If I use a .bat file my program starts up fine, but the second time I try and execute the bat file I get the following message.

    "The process cannot access the file because it is being used by another process."

    That message is not from my program, it's from Windows. I don't understand why this is happening. Why is my jar file not executing, how does Windows know my program is trying to access the lock file?
    I cannot allow Windows to reject this call to my program, even though I won't start up a second instance I do need to do something with command line paramters passed into it.
     
    joeschmo_649, Apr 25, 2022
    #4
Thema:

Taskscheduler - .bat file doesnt execute after reboot

Loading...
  1. Taskscheduler - .bat file doesnt execute after reboot - Similar Threads - Taskscheduler bat file

  2. Can't execute .bat files pc update error

    in Windows 10 Gaming
    Can't execute .bat files pc update error: Hi i am trying to execute a .bat files, but evrytime i try to execute it it give me the message: "This app can't run on your PC. To find a version for your PC, check with the software publisher." and i just can't seem to fix this problem....
  3. Can't execute .bat files pc update error

    in Windows 10 Software and Apps
    Can't execute .bat files pc update error: Hi i am trying to execute a .bat files, but evrytime i try to execute it it give me the message: "This app can't run on your PC. To find a version for your PC, check with the software publisher." and i just can't seem to fix this problem....
  4. Can't execute .bat files.

    in Windows 10 Gaming
    Can't execute .bat files.: As you can see on this video i can't execute bat files. Can someone help me how can i fix it ? Im using windows 11.https://gifyu.com/image/SnaYY https://answers.microsoft.com/en-us/windows/forum/all/cant-execute-bat-files/8cd724f5-a004-48c6-a8a1-37729c652e48
  5. Can't execute .bat files.

    in Windows 10 Software and Apps
    Can't execute .bat files.: As you can see on this video i can't execute bat files. Can someone help me how can i fix it ? Im using windows 11.https://gifyu.com/image/SnaYY https://answers.microsoft.com/en-us/windows/forum/all/cant-execute-bat-files/8cd724f5-a004-48c6-a8a1-37729c652e48
  6. Taskscheduler - .bat file doesnt execute after reboot

    in Windows 10 Gaming
    Taskscheduler - .bat file doesnt execute after reboot: Hello1. Due to some reasons, I need to reboot my win10 daily at 4 AM. Please dont comment on why I do this and try to convince me not to. This daily reboot is non-negotiable.2. I have scheduled to run some .bat file at 430AM or so, once the reboot is completed. Unfortunately,...
  7. Taskscheduler - .bat file doesnt execute after reboot

    in Windows 10 Customization
    Taskscheduler - .bat file doesnt execute after reboot: Hello1. Due to some reasons, I need to reboot my win10 daily at 4 AM. Please dont comment on why I do this and try to convince me not to. This daily reboot is non-negotiable.2. I have scheduled to run some .bat file at 430AM or so, once the reboot is completed. Unfortunately,...
  8. .bat files cannot be executed (Windows 10)?

    in Windows 10 Software and Apps
    .bat files cannot be executed (Windows 10)?: I want to run a .bat file that will allocate more ram to my Minecraft server. I receive the following message. Please ask questions :D [ATTACH] [ATTACH] .bat Dateien lassen sich nicht ausführen (Windows 10)?
  9. Executing a .bat file on CMD

    in Windows 10 Support
    Executing a .bat file on CMD: Hello all, For a programming process we need to execute a .bat file from CMD. I'm on Windows 10 x64. When I paste the path to the file and hit Enter, the message below is expected to show up: Setting up environment for Qt usage... It happened a time and when we wanted to...
  10. Executing the bat file without showing the cmd window?

    in Windows 10 Support
    Executing the bat file without showing the cmd window?: I have a bat file closing a program - Digital Clock close.bat - containing: Code: taskkill /F /IM digital_clock.exe[/quote] How could I avoid this window to be opened when executing the bat file: [img] 92109