ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    What Are You Doing Right Now

    Water Closet
    time waster
    285
    88.9k
    41.5m
    Loading More Posts
    • 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.
    • gjacobseG
      gjacobse
      last edited by gjacobse

      Wrote a extremely simple (ETA:) Windows script last night to update and shutdown my laptop.... I may see about adding a few other things to it but for now - here it is; as is....

      @Echo off
      REM 26 Sept 2017
      REM Created this batch file to update via Choco, and then
      REM Shutdown this device.
      
      Color 6
      Echo This must be run as Administrator
      Echo If it is not run as Administrator, it will error
      Echo And likely perform the Shutdown only.
      Echo:
      Echo:
      Echo Press the -SPACEBAR- to begin update and shutdown
      pause
      mode con:cols=80 lines=25
      choco upgrade all -y
      Cls
      mode con:cols=80 lines=20
      Color 2
      Echo Update completed
      Echo Ready to shutdown
      Echo Shutdown timer set to ZERO
      timeout 5 >nul
      shutdown /s -t 0
      

      It was mainly done for fun and also function....

      1 Reply Last reply Reply Quote 0
      • DustinB3403D
        DustinB3403
        last edited by

        @gjacobse not bad, but why so verbose, and why have the pause until you hit the space bar? If you wanted to schedule it. This would pause indefinitely without your interaction.

        gjacobseG 1 Reply Last reply Reply Quote 0
        • gjacobseG
          gjacobse @DustinB3403
          last edited by

          @dustinb3403 said in What Are You Doing Right Now:

          @gjacobse not bad, but why so verbose, and why have the pause until you hit the space bar? If you wanted to schedule it. This would pause indefinitely without your interaction.

          It is a WIP -Work In progress. It's there just in case one were to change their mind really... I am debating on combining a script by brother wrote for the computer shutdown into this - I just have to find it again (it's on at least one of the eight drives here and the NAS).

          As for why is it so verbose? Meh - Many I suppose for myself... but should someone else want it, they had the directions and what it did.

          QuixoticJeremyQ 1 Reply Last reply Reply Quote 1
          • QuixoticJeremyQ
            QuixoticJeremy @gjacobse
            last edited by

            @gjacobse said in What Are You Doing Right Now:

            @dustinb3403 said in What Are You Doing Right Now:

            @gjacobse not bad, but why so verbose, and why have the pause until you hit the space bar? If you wanted to schedule it. This would pause indefinitely without your interaction.

            It is a WIP -Work In progress. It's there just in case one were to change their mind really... I am debating on combining a script by brother wrote for the computer shutdown into this - I just have to find it again (it's on at least one of the eight drives here and the NAS).

            As for why is it so verbose? Meh - Many I suppose for myself... but should someone else want it, they had the directions and what it did.

            Being verbose isn't a bad thing. One of the most annoying things for me is coming into a new dev environment where there is 0 commenting. Yes reading the code speaks for itself but I'm going to read a quick sentence about whats going on more quickly then reading through random code that could have been written by someone who has no idea what they're doing.

            1 Reply Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403
              last edited by

              I wasn't complaining about the verbose-ness, a quick note is a good thing. Having paragraphs on the other hand. . .

              gjacobseG 1 Reply Last reply Reply Quote 0
              • gjacobseG
                gjacobse @DustinB3403
                last edited by

                @dustinb3403 said in What Are You Doing Right Now:

                I wasn't complaining about the verbose-ness, a quick note is a good thing. Having paragraphs on the other hand. . .

                I'm not a programmer,.. and generally don't build many (if any) scripts... so while it may be long in the tooth in content,.. it tells me what does what later when I want to change it. Since I don't do this often - it'll be a nice reminder.

                At least in this case - I didn't cite where I got some of the context - which I have done in the past but for more 'involved' scripts that I don't understand...could never write - nor figure out (Thanks @Mike-Davis )

                I don't code,.. script may not be 'real code' but it's what I am comfortable with - and even then - the higher end stuff is still beyond my current desired skill set.

                DustinB3403D 1 Reply Last reply Reply Quote 0
                • DustinB3403D
                  DustinB3403 @gjacobse
                  last edited by

                  @gjacobse again, I'm not attacking you, if you need a lot of notes to recall what does what in your script fine.

                  When I script I put notes in as well, but I limit them to single lines and I don't print them out to the console unless its something like "press space to reboot".

                  It's perfectly fine, don't get upset with me because I asked why you had so many notes. It was just a question.

                  gjacobseG QuixoticJeremyQ 2 Replies Last reply Reply Quote 0
                  • gjacobseG
                    gjacobse @DustinB3403
                    last edited by

                    @dustinb3403

                    I don't consider it an attack of any kind. Nope Nope.. You asked so you could understand.. That's all I saw it as.

                    No harm - no foul.

                    1 Reply Last reply Reply Quote 0
                    • QuixoticJeremyQ
                      QuixoticJeremy @DustinB3403
                      last edited by

                      @dustinb3403 said in What Are You Doing Right Now:

                      @gjacobse again, I'm not attacking you, if you need a lot of notes to recall what does what in your script fine.

                      When I script I put notes in as well, but I limit them to single lines and I don't print them out to the console unless its something like "press space to reboot".

                      It's perfectly fine, don't get upset with me because I asked why you had so many notes. It was just a question.

                      I don't think anyone was getting upset with you. I know I wasn't.

                      1 Reply Last reply Reply Quote 0
                      • AdamFA
                        AdamF
                        last edited by

                        Resizing partitions! Riveting stuff.

                        QuixoticJeremyQ RojoLocoR 2 Replies Last reply Reply Quote 1
                        • QuixoticJeremyQ
                          QuixoticJeremy @AdamF
                          last edited by

                          @fuznutz04 said in What Are You Doing Right Now:

                          Resizing partitions! Riveting stuff.

                          Sounds thoroughly enjoyable!

                          AdamFA 1 Reply Last reply Reply Quote 0
                          • AdamFA
                            AdamF @QuixoticJeremy
                            last edited by

                            @quixoticjeremy said in What Are You Doing Right Now:

                            @fuznutz04 said in What Are You Doing Right Now:

                            Resizing partitions! Riveting stuff.

                            Sounds thoroughly enjoyable!

                            Yeah, basically fixing a prior mistake. It's all good now though. And yes, oddly, it is enjoyable. 🙂

                            QuixoticJeremyQ scottalanmillerS 2 Replies Last reply Reply Quote 0
                            • QuixoticJeremyQ
                              QuixoticJeremy @AdamF
                              last edited by

                              @fuznutz04 Well those are the two things that matter, right? It's fixed and it was fun!

                              gjacobseG 1 Reply Last reply Reply Quote 2
                              • gjacobseG
                                gjacobse @QuixoticJeremy
                                last edited by

                                @quixoticjeremy said in What Are You Doing Right Now:

                                @fuznutz04 Well those are the two things that matter, right? It's fixed and it was fun!

                                On so many levels that is why I still do IT,.. well at least most times..

                                1 Reply Last reply Reply Quote 2
                                • EddieJenningsE
                                  EddieJennings
                                  last edited by

                                  Trying to figure out how a few things web site and e-mail related were setup, since there's no documentation. 😞

                                  1 Reply Last reply Reply Quote 0
                                  • RojoLocoR
                                    RojoLoco @AdamF
                                    last edited by

                                    @fuznutz04 said in What Are You Doing Right Now:

                                    Resizing partitions! Riveting stuff.

                                    What are you riveting? 😉

                                    AdamFA 1 Reply Last reply Reply Quote 2
                                    • jt1001001J
                                      jt1001001
                                      last edited by

                                      In Rochester office today, conencting office to new 100 meg Internet circuit

                                      gjacobseG scottalanmillerS 2 Replies Last reply Reply Quote 2
                                      • AdamFA
                                        AdamF @RojoLoco
                                        last edited by

                                        @rojoloco said in What Are You Doing Right Now:

                                        @fuznutz04 said in What Are You Doing Right Now:

                                        Resizing partitions! Riveting stuff.

                                        What are you riveting? 😉

                                        Hard drives of course!

                                        1 Reply Last reply Reply Quote 1
                                        • dbeatoD
                                          dbeato
                                          last edited by

                                          Long day today, I dropped off my sister in NY on the road since 6:45 AM and go to the office at 11:30 AM...

                                          1 Reply Last reply Reply Quote 0
                                          • gjacobseG
                                            gjacobse @jt1001001
                                            last edited by

                                            @jt1001001 said in What Are You Doing Right Now:

                                            In Rochester office today, conencting office to new 100 meg Internet circuit

                                            I would suggest an NTG lunch - sadly this isn't a good week for it. @Minion-Queen is in prep for a Client site visit on Friday..

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 2443
                                            • 2444
                                            • 2445
                                            • 2446
                                            • 2447
                                            • 4443
                                            • 4444
                                            • 2445 / 4444
                                            • First post
                                              Last post