Click here to Skip to main content
15,211,405 members

batch

Great Reads

by Simon P Stevens
How to set the current directory correctly when running batch scripts as administrator
by Dan Randolph
Builds on the existing RunRemote project to run commands on a remote server.
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 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 Tiago Cavalcante Trindade
How to put color in Python, C, C++, C#, Java and batch on the Windows console
by Elias Bachaalany
Practical and useful Batch files scripts for beginners and advanced users
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 yuvalsol
Batch script that retrieves checked out and changed files from TFS and saves their paths to output file

All Articles

Sort by Score

batch 

7 Mar 2014
Partha_sarathi_ghosh
Zip or Archive and delete old log files using Windows Task Scheduler in Winrar
12 Jun 2014
Jani Mäkinen
Program return values inspected by .bat files with visual feedback
4 Mar 2017
yuvalsol
Batch script that retrieves checked out and changed files from TFS and saves their paths to output file
20 Oct 2010
Simon P Stevens
How to set the current directory correctly when running batch scripts as administrator
1 Mar 2011
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...
20 Feb 2012
yudi19872001
Batch file for deleting files automatically using ForFiles.exe.
9 Mar 2020
Tiago Cavalcante Trindade
How to put color in Python, C, C++, C#, Java and batch on the Windows console
5 Aug 2016
Andy Uncle Frank
A simple batch code that can help you start your work day
4 Oct 2018
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.
1 Mar 2011
Indivara
2 alternatives  
Are you sure your batch file will actually do what you intended?
23 Aug 2011
Caner Korkmaz
Creating Your Own Command Prompt Like Visual Studio Command Prompt
1 Mar 2011
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.
6 Jul 2015
Mike Trank
Simple Daily SQL Server Database Backup Batch File
29 May 2013
mpolaczyk
Public Key Auth - Why it's better than simple password and how to configure
28 Jun 2013
_Asif_
This tip helps in creating User schema with fresh password on the fly