Questions tagged [batch]

The batch tag is used for Windows batch file questions.

Filter by
Sorted by
Tagged with
2
votes
0answers
51 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
0answers
31 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. ...
1
vote
0answers
10 views

Copies local files to remote IIS server

I have written a script that: connects to an IIS server stops a website copies its files to a backup folder (on the remote machine) copies files from my local machine to replace the ones on the ...
1
vote
0answers
41 views

Push multiple tag to multiple Github repositories using batch script

Push tags to multiple git repositories using a script in one go. Here first, we create a separate folder for git repository. Pull the repository. create a tag in local. push tag to the remote. In a ...
1
vote
0answers
41 views

Batch script to download and extract Node.JS and NPM packages

The following is my first real attempt at batch scripting, and I'm new to it so I'm not sure whether what I've done is to best practice. The code works, and I'm open to suggestions. Basically the ...
0
votes
0answers
38 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
0answers
66 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, ...
1
vote
0answers
27 views

“Function” to extract a file in Batch

Recently, I've been doing more and more Batch "programming". I always find myself in the need to extract a file and do something with the files. This is not my first version, and a few non-general-...
1
vote
1answer
53 views

Optimizing loop - Reducing native calls

I am developing Android-Disassembler. I need to optimize the loop below. It is currectly calling native method for each instructions(about 4 bytes). So this loop will be looped about millions of ...
3
votes
1answer
35 views

Sorting files into subdirectories based on keyword scores

This script sorts files from current directory into known subdirectories. it is built for speed because the keyword database used can be up to 20kb. each line of the database has ...
1
vote
0answers
768 views

XignCode Bypasser installer for Blade & Soul

As the title says, this batch script installs the XignCode Bypasser. Xigncode is a software bundled with games to analise running programs and prevent cheating. (Sometimes, it prevents the game to ...
7
votes
2answers
93 views

Batch file to delete calling program and then itself

There are times when I want to run a one-off executable on an end-user's machine that cleans up after itself, i.e. deletes itself without a trace. An exe can't delete itself because an exe can't be ...
1
vote
0answers
33 views

Bat file that can create a text file of any exact size and it will be compression resistant

I'm making a bat file that can create a text file of any exact size and it will be compression resistant just for fun. It's currently in 2 parts because that's the only way I could figure out how to ...
2
votes
0answers
61 views

Static Batch file Analyser

Nowadays there are many malware which is a batch file (.bat) or batch file is directly or indirectly helps to download, execute malicious process/executable etc here is a single header and source ...
4
votes
0answers
76 views

Installer Script

I would like to know how to simplify and improve this script, which should: Check to determine if the Central Process is 32 or 64 bit Determine if, specifically, Java 1.8 is installed on the computer ...
1
vote
0answers
31 views

Duplicate Video Finder

This finds duplicate video files using size, duration and partial filename. I have a mass of 17000+ videos and it seems to do an OK job; the amount of duplicates has certainly reduced drastically. ...
3
votes
1answer
114 views

Copying a file hash to clipboard without PowerShell

… isn't easy. ...
3
votes
1answer
98 views

Windows directory tagger in C++

What I have this program that allows me assigning tags for directories and then change working directory to the directories via their tags. Installing In your home directory, create a folder ...
2
votes
1answer
111 views

Media manager batch script for qbittorrent downloads + video sorting & duplicates check

I am building a complete-as-possible media manager in batch. It watches your qbittorrent downloads, processes them and sorts the media to your collection. This is the main part of the script which ...
1
vote
0answers
146 views

Batch resetting EML files timestamps/datestamps

With Windows Vista, 7, 10 and Windows Server 2012, apparently the Indexing Service causes eml files datestamp to change from the original. This can cause backup or syncing services relying on ...
1
vote
0answers
79 views

Add script to clear Chrome upon logoff

This program automatically makes folders to add scripts to be ran once a computer is logged off a user. It checks to make sure it is not overwriting any previous scripts (windows). ...
2
votes
0answers
223 views

Watermark and join videos in bulk using ffmpeg

I have this batch file using ffmpeg to add a logo to my videos and then add an intro but it's taking anywhere from 10 hours to a day depending on how many I have to watermark, is there a more ...
3
votes
1answer
506 views

Conways Game of Life in cmd batch file

Just for fun I have written a Conway's Game of Life in cmd batch file. I like writing in batch - its restrictions and limits are its appeal. However - it is slow, very slow on a large grid. Any tips ...
1
vote
0answers
98 views

Firefox portable launcher for multiple network configurations

I am making a Software package which let you launch a portable version of Firefox with several user profiles to choose from. The goal is to make a an small and easy to use software package which ...
4
votes
1answer
258 views

Login System In Batch

Here I made a program in batch that detects all files with the .user extension. Then it allows the user to pick a username by entering the number associated with that username. The code is messy, so ...
6
votes
1answer
262 views

Compute Gregorian year from given number of days since day zero

I am working on a batch file for doing date/time maths. One challenge is to determine the (proleptic) Gregorian year from the given number of days that have elapsed since day zero (that is, 1st of ...
5
votes
0answers
177 views

Settings JAVA_HOME with batch

At my work, I need to use multiple versions of Java, depending on which project I work on. I've made a batch script to take care of this. There are several different actions that you can perform with ...
11
votes
2answers
748 views

Batch file to backup and update SQL Server DBs

This is my first windows batch file. The script basically goes through this basic flow of tasks, in order to update some specific SQL Server DBs to a new DB version: Backup all SQL server DBs that ...
2
votes
0answers
316 views

GROM – Generalized Release Order Management

Inspired by the StackOverflow question Auto-increment release version Jenkins I developed the following generalized solution. Is there anything that can be done better, shorter, more elegant, more ...
5
votes
1answer
106 views

DOS batch script to open file explorer

I wrote a script that you can use to open the file explorer from command line like e db --> opens my Dropbox folder (e.cmd is ...
8
votes
1answer
213 views

Batch script to make folders hidden

I just wrote a simple script cmd to hide private folders by combining several scripts from the Internet. Can anyone give me suggestions for improvement? This batch file uses a password hidden by ...
5
votes
1answer
3k views

Batch/PowerShell script that toggles the minimized state of a window

I wrote this script for a user who wants to toggle the minimized state of a window that minimizes to the tray. The user required a .bat script, so I wrote a bat + PowerShell hybrid script in order to ...
3
votes
1answer
64 views

Make pinging faster while looking for a Windows PC

This code pings 1 time every IP while using TTL to identify if it's a Windows PC. If so, it outputs it. It's very slow, so is there any way to make it go faster (1-255 in 12 min)? ...
4
votes
0answers
395 views

Automatically push git submodule's parents recursively

I'm absolutely terrible with .bat files, but sometimes they are just needed. Right now I'm working on a project with quite some submodules, which have quite some ...
6
votes
0answers
127 views

Chatty AI that saves .txt files to remember

This is a basic AI that I created. It has a teach function that creates a .txt file with user inputed info for future use. If you type teachme you have the option to type in something that you have ...
3
votes
1answer
4k views

Copying files into Dropbox folder from command line

I made the following code. Since it is a Batch, any kind of problems can appear. Please review it and point any problems when copying files into Dropbox! Its intent is that you will copy a file into ...
3
votes
0answers
450 views

Guess my number

I have a fully working "Guess my number" game, in which the batch file will generate a random number between 0-whatever you choose. I got the idea from this thread, in which I had a rather hilarious ...
8
votes
2answers
524 views

WiFi adapter settings

Yesterday I have found that I can't use the wireless network at some spots in my house. I used another modem as a WiFi booster and I managed to cover these spots. The problem is that when I go to ...
1
vote
1answer
132 views

Thy Dungeonman 3 using batch

I just started learning commands for batch files. I figured a project is a good way to learn the language better, so I'm attempting to recreate the text-based RPG, Thy Dungeonman 3. So far, I've ...
0
votes
1answer
723 views

AJAX Done Callback to prevent requests from interrupting each other

I am trying to make sure my client-side code does not send another request before it receives a reply. To the best of my knowledge the code I will post is supposed to do this but I am still getting a -...
5
votes
1answer
988 views

Batch file command looper

Just a fun batch file I have made. I wanted an easy way to loop any arbitrary command several times: loopme.bat ...
3
votes
1answer
234 views

Batch file for looking through text files

I was creating a program and I was trying to explain it to some of my coding friends. They commented that it was too tedious typing out all the "if" commands. How do I streamline this code? Note: ...
7
votes
1answer
2k views

Batch script to start the service in a gap of 10 min

I have created a batch script to start the services in a gap of 10 min. My batch file will start the service on the local system and then will wait for 10 mins and starts the service on another system ...
6
votes
1answer
365 views

Windows Batch Tech Tool

I made this to help new techs be more proficient while they are learning. I know most of it is common knowledge around here. I would also like to point out that I don't really know batch but I am ...
1
vote
2answers
2k views

Batch file to copy specific folders and to delete the folder which is not copied

This is the batch file I have created which copy the specific folders which I want. I use the specific server folder name of which I want to copy. This batch file will also delete the folder which you ...
1
vote
1answer
2k views

Batch file to zip logs date wise

This is the batch file I have created which zips the particular month logs and deletes those logs from the source folder after successful zipping. If it does not find the zip file, then it again ...
3
votes
2answers
3k views

Batch file to copy specific folders

This is the batch file i have created which copy the specific folders which I want. I use the specific server folder name of which I want to copy. Please suggest any improvements. ...
2
votes
1answer
100 views

Improving efficiency and flow by changing subroutine orders

A batch file executes WinSCP.exe's console mode to download files and log the actions. Upon exit, WinSCP returns: ERRORLEVEL 0 if the files are successfully ...
4
votes
1answer
3k views

Checking for a date and compare 2 different files

From snippets around the web, I was able to put together this .bat file to check for a date and compare 2 different files. This works below but I want to clean it up so it can be much lighter and ...
4
votes
2answers
91 views

Batch file-download script - is it necessary to re-phrase commands?

I run a script to download a file and unzip it. An import process then runs and leaves the files in their source location. I wrote the fully functioning code below to clean up that directory to be ...