Announcement

Collapse
No announcement yet.

Off Pc

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Off Pc

    Hey, I want to know if there is any script to shut down the PC. Thank you. I translate from spain with google

    #2
    Sure. You should be able to put this in a file named shutdown.bat
    Code:
    rem 0 = Log Off
    rem 1 = ShutDOwn
    rem 2 = Restart
    rem 4 = Forced
    rem 8 = Poweroff
    
    rem You can combine these shotdown options by totaling their value. E.g. 12 = Poweroff + Forced
    
    C:\WINDOWS\system32\RUNDLL32.EXE shell32.dll,SHExitWindowsEx 8
    Then setup an event to run the .bat file
    -Rupp
    sigpic

    Comment


      #3
      Thanks, but I do not understand. if you could send me the script produced.

      Comment


        #4
        I posted the entire script. You can simply create a file named shutdown.bat and then cut and paste these lines into the file. Then to test it simply double click on the file. If this works then setup and event to run this file using an action of Launch Application. Put this file in your scripts folder and reference the path to the file in the event action.
        -Rupp
        sigpic

        Comment


          #5
          Originally posted by Rupp View Post
          Sure. You should be able to put this in a file named shutdown.bat
          Code:
          rem 0 = Log Off
          rem 1 = ShutDOwn
          rem 2 = Restart
          rem 4 = Forced
          rem 8 = Poweroff
           
          rem You can combine these shotdown options by totaling their value. E.g. 12 = Poweroff + Forced
           
          C:\WINDOWS\system32\RUNDLL32.EXE shell32.dll,SHExitWindowsEx 8
          Then setup an event to run the .bat file
          Felipe

          Lo que tienes que hacer es copiar estas instrucciones en la section de "action" y luego ejecuta el evento.
          Hector
          ____________________________________
          Win.2003 OS, HS3
          BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
          BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
          MyTrigger,ACRF2,W800,Zwave
          AP800,Honeywell Stat

          Comment


            #6
            Originally posted by Rotech View Post
            Felipe

            Lo que tienes que hacer es copiar estas instrucciones en la section de "action" y luego ejecuta el evento.
            Stop that Hector.
            -Rupp
            sigpic

            Comment


              #7
              Why, is that rupp, aim just trying to help. Cant you see he has problem trying to understand, whats wrong speaking in another language?
              Last edited by Rotech; October 12, 2008, 06:15 PM.
              Hector
              ____________________________________
              Win.2003 OS, HS3
              BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
              BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
              MyTrigger,ACRF2,W800,Zwave
              AP800,Honeywell Stat

              Comment


                #8
                It was a joke.
                -Rupp
                sigpic

                Comment


                  #9
                  Originally posted by Rotech View Post
                  Why, is that rupp, aim just trying to help. Cant you see he has problem trying to understand, whats wrong speaking in another language?

                  You missed the little smiley face at the end denoting humor.
                  Marty
                  ------
                  XPpro SP3 /w HS Standard 2.5.0.80, HSTouch Server - 1.0.0.70, HSTouch Client 1.0.0.73 HSTouch Android - 1.0.0.2, HSTouch iPhone - 1.0.0.2
                  Playing with HS3 a bit but it's just play at this point.

                  Comment


                    #10
                    Maybe the smiley face means something different in Spanish

                    I think it is great that some people speak more than one language, me I am totally "single tongued"
                    Over The Hill
                    What Hill?
                    Where?
                    When?
                    I Don't Remember Any Hill

                    Virtualized Server 2k3 Ent X86 Guest on VMWare ESXi 4.1 with 3 SunRay thin clients as access points - HSPro 2.4.0.48 - ZTroller - ACRF2 (3 WGL 800's) - iAutomate RFID - Ledam - MLHSPlugin - Ultra1wire - RainRelay8 - TI103 - Ultramon - WAF-AB8SS - jvESS (11 zones) - Bitwise Controls BC4 - with 745 Total Devices - 550 Events - 104 scripts - 78 ZWave devices - 42 X10 devices - 76 DS10a's 3 RFXSenors and 32 Motion Sensors

                    Comment


                      #11
                      Originally posted by nightwalker View Post
                      You missed the little smiley face at the end denoting humor.
                      I wasn't smiling to put one on.....
                      Hector
                      ____________________________________
                      Win.2003 OS, HS3
                      BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
                      BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
                      MyTrigger,ACRF2,W800,Zwave
                      AP800,Honeywell Stat

                      Comment

                      Working...
                      X