Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / batch

Batch

batch

Great Reads

by Marijan Nikic
How to set AIP label via VBScript code
by Indivara
Are you sure your batch file will actually do what you intended?
by Br.Bill
First command of the file should be:PUSHD directory_you_want_to_be_inThat solves it always. No testing for anything. No need to error out, because your expected file's gonna be in the expected directory.
by Reto70
if you want to run the script in the folder where the script is store you can add the following code@ECHO %0 %*@pushd@cd /D "%~dp0"@cd....@pause@popdin most case %0 is the name of the script including the full path%~dp0 is only the drive and the path of the scriptcd...

Latest Articles

by Marijan Nikic
How to set AIP label via VBScript code
by Indivara
Are you sure your batch file will actually do what you intended?
by Br.Bill
First command of the file should be:PUSHD directory_you_want_to_be_inThat solves it always. No testing for anything. No need to error out, because your expected file's gonna be in the expected directory.
by Reto70
if you want to run the script in the folder where the script is store you can add the following code@ECHO %0 %*@pushd@cd /D "%~dp0"@cd....@pause@popdin most case %0 is the name of the script including the full path%~dp0 is only the drive and the path of the scriptcd...

All Articles

Sort by Score

batch 

by Jack Vanlightly
In this article we'll look at common patterns in batch processing and how the Taskling libraries provide a simple and reliable way of using those patterns in your C# batch jobs.
by Elias Bachaalany
Practical and useful Batch files scripts for beginners and advanced users
by FrostedSyntax
How to create batch files that make navigating the filesystem in the command prompt a breeze.
by Chris Maunder
A quick overview and a simple Windows CMD script to make your terminal output a little more lively
by x3F
Batch scripts that help install MongoDB on a Windows PC
by FormerBIOSGuy
This article describes a set of batch, AWK, and PostScript files that together allow you to create personalized, 12-page PDF calendars for some year.
by Dan Randolph
Builds on the existing RunRemote project to run commands on a remote server.