What Are You Doing Right Now
-
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....
-
@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.
-
@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.
-
@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.
-
I wasn't complaining about the verbose-ness, a quick note is a good thing. Having paragraphs on the other hand. . .
-
@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.
-
@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 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.
-
@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.
-
Resizing partitions! Riveting stuff.
-
@fuznutz04 said in What Are You Doing Right Now:
Resizing partitions! Riveting stuff.
Sounds thoroughly enjoyable!
-
@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.
-
@fuznutz04 Well those are the two things that matter, right? It's fixed and it was fun!
-
@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..
-
Trying to figure out how a few things web site and e-mail related were setup, since there's no documentation.
-
@fuznutz04 said in What Are You Doing Right Now:
Resizing partitions! Riveting stuff.
What are you riveting?
-
In Rochester office today, conencting office to new 100 meg Internet circuit
-
@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!
-
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...
-
@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..