#BatchFile

2025-10-07

Một công cụ mới Blinter - Batch File Linter đã ra mắt! Công cụ này giúp kiểm tra và cải thiện chất lượng mã lệnh trong các tệp batch (.bat). Tác giả đang tìm kiếm phản hồi về các tính năng. Hãy cùng khám phá và đóng góp ý kiến để Blinter ngày càng hoàn thiện nhé!

#BatchFile #Linter #Programming #DevTools #CôngCụLậpTrình #KiểmTraMã

reddit.com/r/programming/comme

Sascha Stumplersasstu@hessen.social
2025-02-21

PowerShell – PowerShell generated batch file results in error þ is not recognized as an internal or external command dlvr.it/TJ5xdp via PlanetPowerShell #PowerShell #BatchFile #ErrorHandling #CommandLine

iCode2Ifeanyi5
2024-12-12

Just published this post on Medium

ifeanyidiaye.medium.com/how-to

If you find it helpful, please give it some claps 👏 and share it with others, too 🙏

2024-05-27

Ok, this is an extremely niche question, but I'm trying to work with a list of files in a Windows batch script, and one of the files contains two single quotes in the name, so the batch script is interpreting that as a command. Does anyone know of any way I can escape those single quotes programmatically? I can't simply add slashes to them because I don't have access to the filename. Should I pipe them to a text file and then munge the text file? I'm happy to give more information if necessary; this isn't a secret or anything. #Windows #BatchFile #programming #FediHelp #BoostsWelcome

P.S. If your suggestion is not to use a batch script to do this, believe me, I've considered it, but at the moment batch is what I've got. I'm not going to install an entirely new shell to do this fairly simple task and I don't like PowerShell enough to go to the trouble of scripting in that. If I were to write a non-shell program, I would probably write it in Python as that seems like the most reasonable option, but I remain convinced that there's a way to do this in a batch script.

2023-03-07

Debuting my Twitch stream fast startup batch file tonight!

It closes down all the programs I don't need for stream, and starts up all of the programs I do need.

The only difference you might notice, as a viewer, is a significantly less stressed me 😊

#Twitch #Stream #TwitchStream #TwitchStreamer #VarietyStreamer #UKStreamer #WelshStreamer #Streamer #Batch #BatchFile #Windows #Shortcut #Shortcuts #Timesaver

Windows icon for a batch file (shortcut), labelled 'stream startup'.
Chaodditychaoddity
2023-02-27

forum.corsair.com/forums/topic

A quick writeup I did on how to launch batch files with Corsair's Icue software.
That way you can launch all your applications and folders for a particular workflow by tapping one of the "G" buttons along the side of your keyboard.

I included a sample- the template for the prompt I used for all the keys. Technically could be used with any software.

brianna of muffinbrianna@tassaron.com
2022-05-18

Funtimes is offline now because bat2web is not good enough. I designed it to work on the terminal first, and making it work on the web was an afterthought. Also, I knew less about Flask when I made it (which is why you can't save the game into a cookie yet).

When requesting input from the user, as a quick hack to make it work online, bat2web enters a while loop and continuously checks if user input is in a queue that gets filled by another thread. It's bad, but it works... kinda. I'll call it a proof of concept. 😛

There's two methods I've thought of to improve the program. One method would be a better system for separating these threads into different processes, keeping them alive as we do now, and managing them at a higher level. That sounds annoying, although it would be cool.

Another method (which I'm more inclined to do) would be to make Batchfile.py's state serializable so that the Python process can be started fresh with each network connection.

I think I can re-enter an arbitrary part of a batchfile chain if I store the callstack with line-numbers and the currently defined variables. I think it would work? 🤔 Perhaps not for all batchfiles, but it should work for Funtimes.bat

The server would receive the callstack as a list of dictionaries, and the variables as a dictionary. Create a new Python process with Batchfile.py, then define the variables and jump to the line-number belonging to the last member of the callstack list. If an exit must be performed, pop the last item from the callstack and go to the line-number above it. When the callstack is empty, exit the program.

Not sure if I'm going to program this or if it would actually work, but it's an idea.
#blog #batchfile #python

brimstonebrimstone
2019-12-03

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst