832
you are viewing a single comment's thread
view the rest of the comments
[-] cupcakezealot@lemmy.blahaj.zone 86 points 6 months ago

i remember writing .bat files and pretending they were really fancy update scripts when i was like ten they did nothing but it was still fun :)

[-] ArmoredThirteen@lemmy.ml 59 points 6 months ago

Like half of my job is writing .bat files to automate stuff locally and not tell my boss that all I do anymore is double click the right things in the right order...

[-] viking@infosec.pub 24 points 6 months ago

You can put in a timeout command at the end, and then call the next .bat file.

For example "TIMEOUT /T 60" waits for 60 seconds before resuming, or you can override it by pressing any key.

So if you know how long the wait time between scripts is, just write a master.bat and call them in order, with adequate waiting time in between.

[-] Tja@programming.dev 17 points 6 months ago

This guy is a master bat-er

[-] SpaceCadet@feddit.nl 4 points 6 months ago

Or just use the @CALL command to call them in order without having to guesstimate how long they run.

[-] ArmoredThirteen@lemmy.ml 3 points 6 months ago

Okay so the dumb part is a lot of this is me abstracting away our complex build system. I've basically bubble-gummed a dedicated build system in top of it for only the tasks I do. At a certain point if I start adding configurations or timing I might as well just wrap it in gradle or something. But the system that I'm calling is already their attempt at simplifying another build system that's underneath it that was written by the old guard using arcane sorcery. The whole thing is a mess

[-] SnipingNinja@slrpnk.net 17 points 6 months ago

Next step, bind them to unused keys on your keyboard and press them in the right order

[-] ebits21@lemmy.ca 10 points 6 months ago
[-] umbrella@lemmy.ml 5 points 6 months ago

op's job is now turning on the computer and setting off ahk.

[-] WhiskyTangoFoxtrot@lemmy.world 6 points 6 months ago

Just set up a drinking bird to set off AHK.

[-] umbrella@lemmy.ml 6 points 6 months ago

op's job is now overseeing a drinking bird

[-] shield_gengar@sh.itjust.works 2 points 6 months ago

Wow a promotion; fancy!

i propose to create a menu in which you can define what batchfiles to run in what order. its been a while since i worked with batch files, but if memory serves right, that should be doable, no?

[-] psud@aussie.zone 1 points 6 months ago

Yes. You could make menus and capture keystrokes in batch files

My autoexec.bat back in windows 3 asked if you wanted windows or a command line (most games didn't like the memory overhead of being loaded from windows)

[-] targetx@programming.dev 1 points 6 months ago

I'd recommend scheduled tasks instead. Why be involved at all? :-)

[-] WhiskyTangoFoxtrot@lemmy.world 13 points 6 months ago

Do you ever list your job title as Batman?

[-] KingThrillgore@lemmy.ml 3 points 6 months ago

No, because the IRS wants to tax Batman

[-] cupcakezealot@lemmy.blahaj.zone 3 points 6 months ago

only if they keep the it room as dark as possible and whenever someone walks in for help they jump up onto the desk with a flashlight and yell "I'M BATMAN' while wearing a cape and underpants.

[-] nycki@lemmy.world 2 points 6 months ago
[-] caseyweederman@lemmy.ca 2 points 6 months ago

50% hero. 100% cotton.

[-] ArmoredThirteen@lemmy.ml 1 points 6 months ago

Well I work from home so I do keep my room dark, I like to have a blanket over my shoulders, it's not uncommon for me to just be in my underwear... Honestly I'm most of the way there

[-] CatTrickery@lemmy.blahaj.zone 11 points 6 months ago

I had a job like that and powershell was a godsend. I let it slip when I accidentally set the multiplier for the delay randomiser too low and it did a months work in a morning. I ended up writing a guide for the others there when I left but sadly everyone but me had computers that supported newer versions of Windows where the scripts ended up broken. They asked me to come back and update it the Monday after I left. I asked if they would pay me to do it. They said no. Then I said no.

[-] ArmoredThirteen@lemmy.ml 2 points 6 months ago

This is part of why I still have manual kickoffs for mine. Never need to worry about work getting done while I'm away or getting done suspiciously fast. Also they should have paid you lol, the dingdongs. Would cost a lot more just in work lost having someone else spend time deciphering and fixing it. They could always get someone else up to speed with the system after it is fixed by you so there's little or no down time

[-] KISSmyOSFeddit@lemmy.world 13 points 6 months ago

They were important to boot games that needed most of your limited memory.

[-] doublejay1999@lemmy.world 14 points 6 months ago

640k should be enough for anybody

tell that my mouse driver, the soundblaster driver and the cdrom driver fighting over every single byte of that precious ram 😩

[-] laughterlaughter@lemmy.world 4 points 6 months ago

Bill Gates denied saying this, by the way.

[-] Klear@lemmy.world 6 points 6 months ago

Or to play the demo made by the warez group that cracked it before launching the game.

[-] chiliedogg@lemmy.world 5 points 6 months ago

I still use bat h files and the system scheduler to automate a shocking amount of my job.

[-] laughterlaughter@lemmy.world -2 points 6 months ago
[-] cupcakezealot@lemmy.blahaj.zone 17 points 6 months ago

punctuation is a scam created by the shadow government

[-] billgamesh@lemmy.ml 0 points 6 months ago

yeah punctuations is silly who cares

[-] Eldritch@lemmy.world 4 points 6 months ago

Typicalcommingfromashillforbigwhitespace!

[-] laughterlaughter@lemmy.world 0 points 6 months ago

It isn't. There's a reason for it.

this post was submitted on 26 Apr 2024
832 points (97.6% liked)

Open Source

30919 readers
659 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS