Questions tagged [batch]
The batch tag is used for Windows batch file questions.
56 questions
3
votes
1
answer
106
views
First .bat script to update a git branch
update-branch.bat is my first batch script. Its current behavior is
update-branch updates the current branch
...
1
vote
1
answer
113
views
Simple fool-proof Minecraft installer
I am making a simple, (hopefully) fool-proof Minecraft installer for my friends, some of whom can't comprehend folders and zip files in addition to running a school-provided device, thus lacking ...
1
vote
1
answer
181
views
Spring Batch Item Writer Calling Stored Procedure
While migrating a Spring application to Spring Batch, I encountered a scenario where I need to process chunks of records from the database and invoke a stored procedure for each chunk. However, each ...
2
votes
0
answers
55
views
Crafting System for Survival Game with Batch
So I've started getting familiar with Batch for the last year off and on, all self taught, and I've made a few little dinky projects here and there but I'm wanting to find out the best way to go about ...
0
votes
0
answers
629
views
In a search of perfect batch script for editing the hosts file
I want to edit Windows hosts file in the best way for the end user, using a batch-only solution. I ended up with this script, which works fine, but since I don't have enough knowledge, the syntax is ...
0
votes
0
answers
269
views
Batch/Powershell program to retrieve system info
This is my first time coding! My intent for this program was to be able to give my technicians a flash drive that will pull system info and email it to me. Currently everything is working, but I was ...
3
votes
0
answers
541
views
Batch file for Wget downloads
I've just written this to facilitate my Wget downloads and I was wondering if anyone can review it for me.
...
2
votes
0
answers
74
views
Request for help to speed up batch program for 17,000 TXT files
I have over 17,000 pages that have been scanned (for a local history archive) which I have OCRed using Tesseract to individual TXT files. I want to be able to search/locate every page containing a ...
2
votes
0
answers
29
views
Creating and Organizing Registry Backups
I've never messed with batch really so I'm trying to introduce myself. I made this to back up all registry data and organize it like this:
RegBackup
November
11-27-2020
[Registry Files]
11-28-2020
...
2
votes
1
answer
143
views
Batch code that boots up minecraft servers
I have some code that boots up a minecraft server, more complicated then most. I'm looking for some positive criticism on how to improve my code (and coding practice!).
File:
...
6
votes
1
answer
951
views
How could I have made this Powershell script that executes robocopy code better
I am trying to get better at Powershell and was wondering if I could get some advice on how to make this code more efficient/cleaner/anything.
This code is intended to launch three batch windows ...
3
votes
0
answers
186
views
Batch configuration script for a new computer
I've been working on a script which configures newly imaged computers (power settings, installed apps, etc)
This is what I have so far:
...
0
votes
2
answers
968
views
Random-number-guessing game as a batch script
I made a little gambling batch file and wanted to know if there was a better way to do the randomization and the checker.
...
4
votes
1
answer
242
views
Download NASA images to use as Windows wallpaper
I made myself a simple script (Batch/JScript) that download a pic from a blog (APOD) & set it as wallpaper.
...
2
votes
0
answers
570
views
Batch file that checks for wifi connection - reconnects if no internet
There is a remote Windows PC that has access to "landline" unmetered WiFi and there is a Verizon 4G LTE MiFi (metered WiFi) as backup. This script checks to see if the PC is connected to any WiFi, ...