• Forcing Smooth Shutdowns and Restarts, Please (Because I Love Analog ClocX)

    Home » Forums » AskWoody support » Windows » Windows 10 » Questions: Win10 » Forcing Smooth Shutdowns and Restarts, Please (Because I Love Analog ClocX)

    Author
    Topic
    #2447175

    ClocX

    I’ve been using ClocX for so long I don’t remember (at this writing) when I started using it. I love it because I came up on analog, and all of us are fundamentally creatures with analog baseware.

    All the Windows machines on which I’ve tried ClocX ask if I’m sure I want to shut down/restart the machine because ClocX stops shut down/restart. Yes, I’m sure. 😉

    What simple, automatic ‘switch’ could be added to the Windows 10 restart/shutdown commands so that it always and automatically forces any open programs to close? And where can I find simple instructions on how to do that? Should Task Scheduler be used? Or should the executables for both shutdown and restart be tweaked?

    Merci buckets

    Human, who sports only naturally-occurring DNA ~ oneironaut ~ broadcaster

    • This topic was modified 2 years, 10 months ago by Mr. Austin.
    • This topic was modified 2 years, 10 months ago by Mr. Austin.
    Viewing 3 reply threads
    Author
    Replies
    • #2447206

      shutdown.exe /p /f (force shut down)
      shutdown.exe -s -t 120 (timer)
      shutdown.exe –r (restart)

      1 user thanked author for this post.
      • #2447684

        Thanks Alex, That’s a decent start for me with the command line switches. I use them so infrequently because a coder I’m gnot 😉

        Human, who sports only naturally-occurring DNA ~ oneironaut ~ broadcaster

    • #2447303

      The question is, can you shut down ClocX using a command line. If not you may not be able to do this.
      Alternatively, you may be able to code it in AutoIt / AutoHotKey.

      cheers, Paul

      • #2447682

        Thank you Paul. I’m trying to do this without learning code I’ve already forgotten because I haven’t used it since the time of Noah😉.

        Human, who sports only naturally-occurring DNA ~ oneironaut ~ broadcaster

    • #2447464

      You could also just make a simple double click desktop icon to force windows shutdown.

      Windows-shutdown-desktop-shrotcut

      Desktop Asus TUF X299 Mark 1, CPU: Intel Core i7-7820X Skylake-X 8-Core 3.6 GHz, RAM: 32GB, GPU: Nvidia GTX 1050 Ti 4GB. Display: Four 27" 1080p screens 2 over 2 quad.

      1 user thanked author for this post.
      • #2447681

        This is one of my favorite replies because it spells it out for me, and I might then interpolate how to mod the actual shutdown.exe. Thank you.

        Human, who sports only naturally-occurring DNA ~ oneironaut ~ broadcaster

      • #2447692

        After creating the shortcut (using either that syntax, or using /t 60) it launches, and then blazes through command line switches, shuts the command line window, and doesn’t shut down.

        Human, who sports only naturally-occurring DNA ~ oneironaut ~ broadcaster

        • #2447694

          /t 60 is a minute delay, not immediate. /t 0 will give you an immediate shutdown.

          “/s /f /t o” = shutdown, force (shutdown of running processes), timedelay = 0.

          1 user thanked author for this post.
          • #2447702

            Derp. I was going for 60 seconds.

            Human, who sports only naturally-occurring DNA ~ oneironaut ~ broadcaster

    • #2447695

      “/s /f /t 0”

      zero, not oh.

      cheers, Paul

      1 user thanked author for this post.
      • #2447703

        *That* I knew. I just had the numerical value incorrect.

        Human, who sports only naturally-occurring DNA ~ oneironaut ~ broadcaster

    Viewing 3 reply threads
    Reply To: Forcing Smooth Shutdowns and Restarts, Please (Because I Love Analog ClocX)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: