this post was submitted on 15 Jan 2026
212 points (98.6% liked)

Technology

78661 readers
5296 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] GhostlyPixel@lemmy.world 14 points 2 hours ago* (last edited 2 hours ago) (1 children)

I would think someone who is taking advantage of bat files would feel right at home with shell scripts in Linux. In my experience, shell was much easier to pick up than batch

Batch is probably the same, but what always made me laugh about shell scripts is you could ask a bunch of people how to do something, and they’d all have a different way, it’s like there’s always a new tool to learn and try to fit into your workflow if you want, I love it

[–] Pika@sh.itjust.works 1 points 32 minutes ago

I think I agree with this. I believe that if you are heavily into group policy or a centralized registry it would be a harder conversion. But you can even "hack" bat files to work for both Linux and Windows depending on what launches it. I had to do that with a testing bot that I sometimes ran on windows, sometimes ran on Linux. It involves abusing the label system on bat (which translates to a command true which accepts no arguments on sh). Granted you are still writing both files but, using this method you can have the windows version of it on the same page as the bash version so you can go line by line instead of having a second file open