Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Some people just don't think.

Some people just don't think.

Scheduled Pinned Locked Moved The Lounge
questioncsharp
39 Posts 23 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Joezer BH

    I want to use C# to shutdown the computer at a specified date and time in the past, Is it possible or do I have to use CPP for such things?

    Never underestimate the difference you can make in the lives of others.

    T Offline
    T Offline
    Thomas Daniels
    wrote on last edited by
    #27

    Edo Tzumer wrote:

    Is it possible or do I have to use CPP for such things?

    It's possible in C#. Shut Down, Restart, Log off or Lock your computer in C#[^]

    The quick red ProgramFOX jumps right over the Lazy<Dog>. My latest article: Understand how bitwise operators work (C# and VB.NET examples) My group: C# Programmers Group

    M 1 Reply Last reply
    0
    • OriginalGriffO OriginalGriff

      A question just appeared, which basically sums up to "I want to use C# to start my computer at a specified date and time" I'm not suggesting in any way that you should go and abuse him - please don't - but am I getting too old for this? Do they not teach people that computers don't run software when the power is off anymore? Banging your head on a desk is wonderful; it feels so good when you stop...

      The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

      L Offline
      L Offline
      LloydA111
      wrote on last edited by
      #28

      I'm pretty surprised by the replies to this post. Has everyone suddenly forgot about the BIOS/real time clock that can be programmed with a date and time to boot?

             .-.
            |o,o|
         ,| \_\\=/\_      .-""-.
         ||/\_/\_\\\_\\    /\[\] \_ \_\\
         |\_/|(\_)|\\\\  \_|\_o\_LII|\_
            \\.\_./// / | ==== | \\
            |\\\_/|"\` |\_| ==== |\_|
            |\_|\_|    ||" ||  ||
            |-|-|    ||LI  o ||
            |\_|\_|    ||'----'||
           /\_/ \\\_\\  /\_\_|    |\_\_\\
      
      1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        A question just appeared, which basically sums up to "I want to use C# to start my computer at a specified date and time" I'm not suggesting in any way that you should go and abuse him - please don't - but am I getting too old for this? Do they not teach people that computers don't run software when the power is off anymore? Banging your head on a desk is wonderful; it feels so good when you stop...

        The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

        H Offline
        H Offline
        Hamed Musavi
        wrote on last edited by
        #29

        It's possible. Write an app that schedules a task with the option to 'wake the computer to run the task' then put computer to sleep. Most modern computers go to a nearly switched off state when asleep.

        J 1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          A question just appeared, which basically sums up to "I want to use C# to start my computer at a specified date and time" I'm not suggesting in any way that you should go and abuse him - please don't - but am I getting too old for this? Do they not teach people that computers don't run software when the power is off anymore? Banging your head on a desk is wonderful; it feels so good when you stop...

          The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

          R Offline
          R Offline
          RedDk
          wrote on last edited by
          #30

          Jude 01:10

          1 Reply Last reply
          0
          • M M dHatter

            https://www.remotepowerswitch.com/[^] If you want to get fancy ;P

            Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitates lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock, and as it always has, rock crushes scissors. :)

            F Offline
            F Offline
            Florian Rappl
            wrote on last edited by
            #31

            This is quite fancy :)

            1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              A question just appeared, which basically sums up to "I want to use C# to start my computer at a specified date and time" I'm not suggesting in any way that you should go and abuse him - please don't - but am I getting too old for this? Do they not teach people that computers don't run software when the power is off anymore? Banging your head on a desk is wonderful; it feels so good when you stop...

              The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #32

              I wrote an application some years ago that did exactly that - it was for recording digital tv through a tv card. Set the prog to record and it shut your computer down and woke it up in time to record the program. The program was actually written in Delphi, but c# would be fine. So before you and the other posters get on your high horses, perhaps you should check the facts ? What the poster asked (I haven't read the original, just your post here) is perfectly possible.

              MVVM # - I did it My Way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

              1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                A question just appeared, which basically sums up to "I want to use C# to start my computer at a specified date and time" I'm not suggesting in any way that you should go and abuse him - please don't - but am I getting too old for this? Do they not teach people that computers don't run software when the power is off anymore? Banging your head on a desk is wonderful; it feels so good when you stop...

                The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                J Offline
                J Offline
                jschell
                wrote on last edited by
                #33

                OriginalGriff wrote:

                Do they not teach people that computers don't run software when the power is off anymore?

                First of course is the fact that people ask questions because they don't have the knowledge. In terms of answering the question a responder can either answer or not. Doesn't seem really relevant as to why they don't have the knowledge. Especially when one knows almost nothing about the poster - it could very well be that the poster never even had the opportunity to learn that. Second of course there can be many reasons one posts seemingly obvious questions. Especially these days were some people treat the internet the same as a office, classroom or coffee shop.

                1 Reply Last reply
                0
                • OriginalGriffO OriginalGriff

                  A question just appeared, which basically sums up to "I want to use C# to start my computer at a specified date and time" I'm not suggesting in any way that you should go and abuse him - please don't - but am I getting too old for this? Do they not teach people that computers don't run software when the power is off anymore? Banging your head on a desk is wonderful; it feels so good when you stop...

                  The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                  PJ ArendsP Offline
                  PJ ArendsP Offline
                  PJ Arends
                  wrote on last edited by
                  #34

                  I read the question you are refering to, and my take on it is that he wants to reboot his computer at a specified date and time, but he is getting stuck on the login password screen. He wants to know how to disable the login password screen for this reboot cycle, but have it enabled otherwise. Not a dumb question at all, just a poorly worded one.

                  Independent ACN Business Owner

                  Need a new cell phone? We supply most of the major carriers. Telus in Canada. Flash, Verizon, T-Mobile and Sprint in the USA. O2, talkmobile, tmobile, orange, three, and vodafone in Europe. See my website for details.


                  Within you lies the power for good - Use it!

                  Within you lies the power for good; Use it!

                  1 Reply Last reply
                  0
                  • OriginalGriffO OriginalGriff

                    Probably not a discussion for the Lounge. I start to swear copiously when I think about most politicians... OT: Google wants to replace the "swear" with "sweat" under it's suggestion rules in the above. Thinking about it, it both are pretty accurate!

                    The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                    J Offline
                    J Offline
                    Joezer BH
                    wrote on last edited by
                    #35

                    OT[^]? ;)

                    Never underestimate the difference you can make in the lives of others.

                    1 Reply Last reply
                    0
                    • T Thomas Daniels

                      Edo Tzumer wrote:

                      Is it possible or do I have to use CPP for such things?

                      It's possible in C#. Shut Down, Restart, Log off or Lock your computer in C#[^]

                      The quick red ProgramFOX jumps right over the Lazy<Dog>. My latest article: Understand how bitwise operators work (C# and VB.NET examples) My group: C# Programmers Group

                      M Offline
                      M Offline
                      MT_
                      wrote on last edited by
                      #36

                      You missed requirement !! "in the past," :-)

                      Thanks, Milind

                      1 Reply Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        A question just appeared, which basically sums up to "I want to use C# to start my computer at a specified date and time" I'm not suggesting in any way that you should go and abuse him - please don't - but am I getting too old for this? Do they not teach people that computers don't run software when the power is off anymore? Banging your head on a desk is wonderful; it feels so good when you stop...

                        The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                        M Offline
                        M Offline
                        Mark_Wallace
                        wrote on last edited by
                        #37

                        I've managed to use lots of programs to shut down and restart my computer. It's the "at a specified date and time" that I can't quite get right -- I can only manage "at the worst possible date and time".

                        I wanna be a eunuchs developer! Pass me a bread knife!

                        1 Reply Last reply
                        0
                        • H Hamed Musavi

                          It's possible. Write an app that schedules a task with the option to 'wake the computer to run the task' then put computer to sleep. Most modern computers go to a nearly switched off state when asleep.

                          J Offline
                          J Offline
                          Jan Steyn
                          wrote on last edited by
                          #38

                          And here is a link to MS's site with some info: http://msdn.microsoft.com/en-us/library/aa373235%28VS.85%29.aspx[^]

                          1 Reply Last reply
                          0
                          • OriginalGriffO OriginalGriff

                            A question just appeared, which basically sums up to "I want to use C# to start my computer at a specified date and time" I'm not suggesting in any way that you should go and abuse him - please don't - but am I getting too old for this? Do they not teach people that computers don't run software when the power is off anymore? Banging your head on a desk is wonderful; it feels so good when you stop...

                            The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                            E Offline
                            E Offline
                            Espen Harlinn
                            wrote on last edited by
                            #39

                            Bertrand Russell:

                            Most people would rather die than think; in fact, they do so

                            I've been wanting to use that quote for quite some time now, this let me do so without offending somebody mortally.

                            Espen Harlinn Principal Architect, Software - Goodtech Projects & Services AS Projects promoting programming in "natural language" are intrinsically doomed to fail. Edsger W.Dijkstra

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups