Windows 10: How can I "Close" or "Exit" a task with a command script WITHOUT taskkill /f ?

Discus and support How can I "Close" or "Exit" a task with a command script WITHOUT taskkill /f ? in Windows 10 Ask Insider to solve the problem; How can I "Close" or "Exit" a task with a command script WITHOUT taskkill /f ? I want to close some tasks, but not force with taskkill. I want to close... Discussion in 'Windows 10 Ask Insider' started by /u/PowayCalifornia, Dec 21, 2020.

  1. How can I "Close" or "Exit" a task with a command script WITHOUT taskkill /f ?


    How can I "Close" or "Exit" a task with a command script WITHOUT taskkill /f ? I want to close some tasks, but not force with taskkill. I want to close as if I went to "File" and clicked "Close" or clicked the "X" on the upper right corner of the task window. So task will ask to save data if needed and do close functions of the task vs stopping in the middle,

    submitted by /u/PowayCalifornia
    [link] [comments]

    :)
     
    /u/PowayCalifornia, Dec 21, 2020
    #1
  2. 少杰纪 Win User

    Dos command “taskkill /f /pid” result’s show Not found

    I have a win7 sp1 x64 system

    When I run the command taskkill /f /pid 4987(a notepad’s pid)

    Then the result’s show me Not found

    Can you help me?

    Thinks!
     
    少杰纪, Dec 21, 2020
    #2
  3. Task scheduler On Idle task not triggered Windows 7

    Here you go:

    1. Put the following two lines into the file

      C:\Users\Fcis_M\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Netlogon.bat

      @Echo off

      start /b "CPU Poll" wscript.exe C:\MyWinFormApp\PollCPU.vbs
    2. Save the script file I posted before as

      C:\MyWinFormApp\PollCPU.vbs
    3. To test it, double-click

      C:\MyWinFormApp\PollCPU.vbs
    4. If you want to modify any of the parameters, e.g. the CPU loading limit, then you must do it like so:

      1. Run taskkill /f wscript.exe

      2. Modify & save the script

      Rerun C:\MyWinFormApp\PollCPU.vbs

    The script will launch automatically at logon time. Further refinements are possible, e.g. building in a delay of 10 minutes after logon time.
     
    Frederik Long, Dec 21, 2020
    #3
  4. dalchina Win User

    How can I "Close" or "Exit" a task with a command script WITHOUT taskkill /f ?

    automatic shutdown program

    Thank you for your reply.



    ForTaskkill the example is
    Taskkill /IM slack.exe /F

    Notice it does NOT use the full disk path name which you seem to have appended. Only the process name.

    Check you have working command by trying this from a command prompt manually.

    Step by step, and always check the syntax carefully.

    More examples:
    Kill Processes from Command Prompt
    How to Kill a Process in Windows 10

    Doing things like this for the first time my take a number of attempts.

    Now, did you notice I did not suggest you use this in a scheduled task? I suggested:

     
    dalchina, Dec 21, 2020
    #4
Thema:

How can I "Close" or "Exit" a task with a command script WITHOUT taskkill /f ?

Loading...
  1. How can I "Close" or "Exit" a task with a command script WITHOUT taskkill /f ? - Similar Threads - Close Exit task

  2. How can I exit Wordpad without saving the current document?

    in Windows 10 Network and Sharing
    How can I exit Wordpad without saving the current document?: When I use Wordpad in Windows 10 the document is automatically saved on exit in its final form. I save as I go along but want to meddle with the document but discard the changes so that the document kept is the last one saved, not the final mangled version....
  3. How can I exit Wordpad without saving the current document?

    in Windows 10 Gaming
    How can I exit Wordpad without saving the current document?: When I use Wordpad in Windows 10 the document is automatically saved on exit in its final form. I save as I go along but want to meddle with the document but discard the changes so that the document kept is the last one saved, not the final mangled version....
  4. How can I exit Wordpad without saving the current document?

    in Windows 10 Software and Apps
    How can I exit Wordpad without saving the current document?: When I use Wordpad in Windows 10 the document is automatically saved on exit in its final form. I save as I go along but want to meddle with the document but discard the changes so that the document kept is the last one saved, not the final mangled version....
  5. Restore Desktop after taskkill /f /im explorer.exe

    in Windows 10 Gaming
    Restore Desktop after taskkill /f /im explorer.exe: I found this for changing the system 32 folder. The System32 folder is a Windows system folder and you should not interfere with it in any way unless you know exactly what you are doing. If you insist then you can use this method to gain full access.Create a desktop shortcut...
  6. Restore Desktop after taskkill /f /im explorer.exe

    in Windows 10 Software and Apps
    Restore Desktop after taskkill /f /im explorer.exe: I found this for changing the system 32 folder. The System32 folder is a Windows system folder and you should not interfere with it in any way unless you know exactly what you are doing. If you insist then you can use this method to gain full access.Create a desktop shortcut...
  7. How do I close a window that is stuck open as "not responding" after taskkill and end task...

    in Windows 10 Gaming
    How do I close a window that is stuck open as "not responding" after taskkill and end task...: I was recently playing a game on steam which is running on task manager as "sonic2app.exe" and it stopped responding so I went to task manager to end task. I closed steam as well which forces all steam games that are running to stop running immediately, but the game app...
  8. How do I close a window that is stuck open as "not responding" after taskkill and end task...

    in Windows 10 Software and Apps
    How do I close a window that is stuck open as "not responding" after taskkill and end task...: I was recently playing a game on steam which is running on task manager as "sonic2app.exe" and it stopped responding so I went to task manager to end task. I closed steam as well which forces all steam games that are running to stop running immediately, but the game app...
  9. How do I close a window that is stuck open as "not responding" after taskkill and end task...

    in Windows 10 BSOD Crashes and Debugging
    How do I close a window that is stuck open as "not responding" after taskkill and end task...: I was recently playing a game on steam which is running on task manager as "sonic2app.exe" and it stopped responding so I went to task manager to end task. I closed steam as well which forces all steam games that are running to stop running immediately, but the game app...
  10. taskkill closes my game.

    in Windows 10 BSOD Crashes and Debugging
    taskkill closes my game.: Hello there! So I decided to play an old game called " cs 1.6 ". Installation was successful, but after I joined a multiplayer/singleplayer match, it opened cmd prompt " taskkill " or something like it. I tried restarting my pc, reinstalling the game, nothing worked. So I...