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 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...
by yuvalsol
Batch script that retrieves checked out and changed files from TFS and saves their paths to output file
by Caner Korkmaz
Creating Your Own Command Prompt Like Visual Studio Command Prompt
by _Asif_
This tip helps in creating User schema with fresh password on the fly
by yudi19872001
Batch file for deleting files automatically using ForFiles.exe.
by Tiago Cavalcante Trindade
How to put color in Python, C, C++, C#, Java and batch on the Windows console
by Teraten
On Windows, a BAT file can run a powershell script to report your wi-fi strength percentage and internet speed.
by Jani Mäkinen
Program return values inspected by .bat files with visual feedback
by mpolaczyk
Public Key Auth - Why it's better than simple password and how to configure
by Simon P Stevens
How to set the current directory correctly when running batch scripts as administrator
by Mike Trank
Simple Daily SQL Server Database Backup Batch File
by Andy Uncle Frank
A simple batch code that can help you start your work day
by honey the codewitch
Presenting a simple to create understandable and maintainable builds for projects with dependencies
by Antagony
Schedule a task to run this script, which checks whether Windows has [re]connected to the specified router after startup, sleep, or hibernation – and attempt to connect if not.
by Partha_sarathi_ghosh
Zip or Archive and delete old log files using Windows Task Scheduler in Winrar