<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3949713545599329919</id><updated>2012-02-02T10:12:34.800-08:00</updated><category term='errors handling'/><category term='jokes'/><category term='techniques'/><category term='3rd party solutions'/><category term='operations with date and time'/><category term='for programmers'/><category term='WWW'/><category term='loops'/><category term='working with text files'/><category term='security'/><category term='renaming files'/><category term='mistakes'/><category term='development'/><category term='registry'/><category term='sorting'/><category term='promotions'/><category term='conditions'/><category term='executing external programs'/><category term='miscellaneous files operations'/><category term='enumeration'/><category term='disk'/><category term='updates'/><category term='solutions'/><category term='philosophy'/><category term='links'/><category term='step-by-step'/><category term='site'/><category term='roadmap'/><category term='discounts'/><category term='purposes'/><category term='restarting'/><category term='batch files'/><category term='tutorials'/><category term='installing software'/><category term='calculations'/><category term='screen tricks'/><category term='search'/><category term='dr.batcher'/><category term='random numbers'/><category term='user account management'/><category term='network'/><category term='parser'/><category term='scripts'/><category term='cleaning'/><category term='backup'/><category term='announcements'/><title type='text'>Dr.Batcher and the World of Batch Files</title><subtitle type='html'>This is a blog of Dr.Batcher's development team. &lt;a href="http://www.drbatcher.com"&gt;Dr.Batcher&lt;/a&gt; is the batch files creation and editing software providing you with the simplest way to create and edit batch files. So here you can find information on batch scripting techniques and development of Dr.Batcher.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>84</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-1697804513095714190</id><published>2011-09-17T13:50:00.000-07:00</published><updated>2011-09-17T14:07:53.999-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Useful Script for Network Backup</title><summary type='text'>Here is an interesting backup script from one of our customers. It requires an external tool to be run, but allows to perform backup from many computers over the network:@echo off@set dircmd=/b  set folder=Documents and Settingsfor /F "tokens=1 usebackq delims==\ " %%i IN (`net view`) DO (echo Start copying %%i...start /wait /min /high robocopy.exe "\\%%i\C$" X:\backup\uim\%%i\C *.doc *.xls /S /R</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/1697804513095714190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/09/useful-script-for-network-backup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1697804513095714190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1697804513095714190'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/09/useful-script-for-network-backup.html' title='Useful Script for Network Backup'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-rl69uFZkm2Y/TnUMGCaI9nI/AAAAAAAAALk/ZAGtdO9AU-A/s72-c/Home-Network-Backup-150x150.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-1202838481417729913</id><published>2011-09-14T16:11:00.000-07:00</published><updated>2011-09-14T16:15:09.468-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='user account management'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Creating a New User Account via Batch Files</title><summary type='text'>Q: I need to write a batch file that creates a new user account. The account's name and password should be passed as parameters like batch_file name pass. What should I do?A: Start Dr.Batcher and type the following script:@echo offif "%~2"=="" goto errorif "%~1"=="" goto errornet user %~1 %~2 /addgoto :EOF:errorecho Usage: %~0 user password That's all!</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/1202838481417729913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/09/creating-new-user-account-via-batch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1202838481417729913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1202838481417729913'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/09/creating-new-user-account-via-batch.html' title='Creating a New User Account via Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-6085783191516147960</id><published>2011-09-09T16:59:00.000-07:00</published><updated>2011-09-09T17:04:32.756-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='working with text files'/><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Removing Unnecessary Trailing Spaces</title><summary type='text'>Imagine: we have a variable with some string data, and we have to remove unnecessary spaces from the end of this variable. The code below shows how to solve this problem:@echo offsetlocalset "a=111 222        ":loopset /a n+=1for /f "tokens=%n%" %%i in ("%a%") do (    if not "%%i"=="" set b=%b%%%i &amp;&amp; goto:loop)set a=%b:~0,-1%set b=echo "%a%" Of course, you have to change this code a bit before </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/6085783191516147960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/09/removing-unnecessary-trailing-spaces.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/6085783191516147960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/6085783191516147960'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/09/removing-unnecessary-trailing-spaces.html' title='Removing Unnecessary Trailing Spaces'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-8748860862943888369</id><published>2011-08-28T13:08:00.000-07:00</published><updated>2011-08-28T13:42:21.535-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='sorting'/><category scheme='http://www.blogger.com/atom/ns#' term='miscellaneous files operations'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Sorting Web Pages Archive</title><summary type='text'>The task is to sort the archive of different Web documents.There is a plenty (about 5 thousands) of files named the following way:number(3-6 digits)_name_.zip(jar,sis)And the same amount of images in 'Screens' folder: number(3-6 digits).jpg(gif,png)Alse there are Web pages in 'Html' folder:number(3-6 digits).htm(html)Is it possible to write a batch script that creates folders named after </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/8748860862943888369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/08/sorting-web-pages-archive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8748860862943888369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8748860862943888369'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/08/sorting-web-pages-archive.html' title='Sorting Web Pages Archive'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-9198843675159442692</id><published>2011-08-24T18:07:00.000-07:00</published><updated>2011-08-24T18:20:30.963-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='installing software'/><category scheme='http://www.blogger.com/atom/ns#' term='executing external programs'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Installing Many Programs at Once</title><summary type='text'>It takes a lot of time to install different software on the users' workstations. It is much easier to run a single batch script created with the award-winning batch files editor and install all these programs immediately. The script will look like this one:@echo offstart /wait "" "C:\Install\setup1.exe"start /wait "" "C:\Install\setup2.exe"start /wait "" "C:\Install\setup3.exe"start /wait ""</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/9198843675159442692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/08/installing-many-programs-at-once.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/9198843675159442692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/9198843675159442692'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/08/installing-many-programs-at-once.html' title='Installing Many Programs at Once'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-AgEyEVRUEUo/TlWjLTnkm5I/AAAAAAAAALc/zs9s1tRzHq8/s72-c/setup_icon.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-402412741909697314</id><published>2011-08-21T15:42:00.000-07:00</published><updated>2011-08-21T16:17:25.536-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='search'/><category scheme='http://www.blogger.com/atom/ns#' term='miscellaneous files operations'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Retrieving the List of Files Modified Lately</title><summary type='text'>It's quite a common task to retrieve the list of files modified during the latest few days. It is easy to solve this task with the help of batch files:@echo offfor %%i in (bmp jpg png gif) do (    forfiles -pC:\Test -s -m*.%%i -d+14 -c"cmd /c echo @PATH @FILE")As far as you can see, this batch file searches for images in 'C:\Temp' folder, and shows those of them that were modified during the</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/402412741909697314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/08/retrieving-list-of-files-modified.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/402412741909697314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/402412741909697314'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/08/retrieving-list-of-files-modified.html' title='Retrieving the List of Files Modified Lately'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-M5Hg0PQ0CF0/TlGOdAO_xvI/AAAAAAAAALU/c-S2CqLnykg/s72-c/files150.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-2984879903872150657</id><published>2011-08-15T17:51:00.000-07:00</published><updated>2011-08-15T17:52:20.563-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='cleaning'/><category scheme='http://www.blogger.com/atom/ns#' term='miscellaneous files operations'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Clearing Sub-Folders in the Given Folder</title><summary type='text'>Imagine: you have a shared folder where users can create there own  sub-folders. Sometimes it is necessary to clean the whole shared folder,  but the cleaning batch script has to leave all the sub-folders and just  delete everything inside them. How to perform it? The small script  below shows you quite an easy way to solve this problem. Hope you'll  find it useful.@echo offpushd "U:\Share </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/2984879903872150657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/08/clearing-sub-folders-in-given-folder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2984879903872150657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2984879903872150657'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/08/clearing-sub-folders-in-given-folder.html' title='Clearing Sub-Folders in the Given Folder'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-8560968506259239568</id><published>2011-08-10T15:00:00.000-07:00</published><updated>2011-08-10T15:10:13.028-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='operations with date and time'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Removing Unnecessary Dots and Slashes from Date</title><summary type='text'>When you want to use the current date as a part of a file's name, you want to see something like '01012011'. Usual 'date' variable gives you human-readable date with additional dots looking like this: '01.01.2011'. Or something like this: '01/01/2011'. It depends on the settings of your copy of Windows. Fortunately, it is not hard to remove unnecessary characters from the string with the date. </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/8560968506259239568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/08/removing-unnecessary-dots-and-slashes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8560968506259239568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8560968506259239568'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/08/removing-unnecessary-dots-and-slashes.html' title='Removing Unnecessary Dots and Slashes from Date'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-412640633892661334</id><published>2011-08-08T17:01:00.000-07:00</published><updated>2011-08-08T17:20:12.110-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='search'/><category scheme='http://www.blogger.com/atom/ns#' term='miscellaneous files operations'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Search for a File on Local Drives</title><summary type='text'>We all need sometimes to find a certain file on a local disk drive. It is not hard to implement search by name with the help of batch files. But what to do if you need to search for  a file on all the drives available on a computer? The example script below shows how to perform it.@echo offsetlocalfor %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do (for /f "tokens=*" %%a in ('dir </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/412640633892661334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/08/search-for-file-on-local-drives.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/412640633892661334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/412640633892661334'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/08/search-for-file-on-local-drives.html' title='Search for a File on Local Drives'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-2011251567511201112</id><published>2011-07-14T16:00:00.000-07:00</published><updated>2011-07-14T16:32:15.310-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='renaming files'/><category scheme='http://www.blogger.com/atom/ns#' term='miscellaneous files operations'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Copy Files and Automatically Rename Existing Ones</title><summary type='text'>Usually while copying large amount of files it is necessary to rename the existing files to avoid overwriting them with the copied ones. Usual commands like copy or xcopy don't let you perform renaming in automatic mode. Still you are able to create a batch script that will help you to solve this problem:@echo offfor %%i in (SourceDir\*) do (   if exist "DestDir\%%~nxi" (      mv "%%i" "DestDir\~</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/2011251567511201112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/07/copy-files-and-automatically-rename.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2011251567511201112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2011251567511201112'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/07/copy-files-and-automatically-rename.html' title='Copy Files and Automatically Rename Existing Ones'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-PldOHrogReA/Th961O9p9QI/AAAAAAAAALM/PFVcZQ3jm60/s72-c/pc-file-transfer-53349.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-6949197727454252032</id><published>2011-07-09T17:03:00.000-07:00</published><updated>2011-07-09T18:03:12.506-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='executing external programs'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Script for 'Remote Execution' of Programs</title><summary type='text'>It is useful sometimes to download a program from a remote server and run on the computer where the batch script is running. It is not so hard to implement it:title Loading program... Please wait...@echo offnet use w: \\192.168.x.x\a1 &gt; nulecho "1. Disk connected"cd d:\d:md 123cd d:\123md Programcopy w:\Prg.exe d:\123\Program\Prog.exe &gt; nulecho "2. File updated"start d:\123\Program\Prog.exe &gt; </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/6949197727454252032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/07/script-for-remote-execution-of-programs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/6949197727454252032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/6949197727454252032'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/07/script-for-remote-execution-of-programs.html' title='Script for &apos;Remote Execution&apos; of Programs'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-JaGyxJj_b9E/Thj6FKHF8lI/AAAAAAAAALE/gwYkKiVmIcg/s72-c/5730561541_71a6b369c0.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-512574752627258694</id><published>2011-06-23T17:23:00.000-07:00</published><updated>2011-06-23T17:32:22.353-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='disk'/><category scheme='http://www.blogger.com/atom/ns#' term='miscellaneous files operations'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Batch File to Create Virtual Disk Drive</title><summary type='text'>Here is the small batch file that lets you create virtual disk drive. This drive doesn't really exist on your computer, it's something like a shortcut to the certain folder on your computer's HDD. The script will look like this:net use X: \\komp\updat pass /user:user /persistent:yes &gt;Nul 2&lt;&amp;1 set dir=T:\homeset od=X:\ del /Q /F %dir%\*.* PING 1.1.1.1 -n 1 -w 2000 2&gt;NUL | FIND "TTL=" &gt;NUL copy /Y </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/512574752627258694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/06/batch-file-to-create-virtual-disk-drive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/512574752627258694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/512574752627258694'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/06/batch-file-to-create-virtual-disk-drive.html' title='Batch File to Create Virtual Disk Drive'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-6300143706480004998</id><published>2011-06-21T12:23:00.000-07:00</published><updated>2011-06-21T12:31:37.063-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='registry'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Retrieving Path to the Start-Up Folder</title><summary type='text'>Sometimes you need to place something in Windows start-up folder. Well, it is not hard to do it, but first of all you need to know where this folder is situated. Fortunately, it's not hard, either. Here is the script that lets you retrieve path to the start-up folder:for /f "tokens=2*" %%i in ('reg query "hkcu\software\microsoft\windows\currentversion\explorer\shell folders" /v ;Startup ^|find /i</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/6300143706480004998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/06/retrieving-path-to-start-up-folder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/6300143706480004998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/6300143706480004998'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/06/retrieving-path-to-start-up-folder.html' title='Retrieving Path to the Start-Up Folder'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-1598203810141765385</id><published>2011-06-13T18:13:00.000-07:00</published><updated>2011-06-21T12:33:48.506-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='operations with date and time'/><category scheme='http://www.blogger.com/atom/ns#' term='miscellaneous files operations'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Passing the Current Date to XCOPY</title><summary type='text'>XCOPY is a really useful console command that allows you to make copies of files in a fast and easy way. One of the parameters of this command is '/d':/d[:mm-dd-yyyy] : Copies source files changed on or after the specified date only. If you do not include a mm-dd-yyyy value, xcopy copies all Source files that are newer than existing Destination files. This command-line option allows you to update</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/1598203810141765385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/06/passing-current-date-to-xcopy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1598203810141765385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1598203810141765385'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/06/passing-current-date-to-xcopy.html' title='Passing the Current Date to XCOPY'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-7370669381059252093</id><published>2011-06-10T16:59:00.000-07:00</published><updated>2011-06-13T18:21:40.439-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Batch File to Check Internet Connection</title><summary type='text'>It's useful to create a small batch file that will check your internet connection and restart the computer if there is no connection at the moment. Of course, nobody restricts you to reset the connection parameters or perform any other actions instead of rebooting the computer. You can take the example below and modify it with help of our award-winning batch files editor.So here is the script to </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/7370669381059252093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/06/batch-file-to-check-internet-connection.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7370669381059252093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7370669381059252093'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/06/batch-file-to-check-internet-connection.html' title='Batch File to Check Internet Connection'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-mvjbWgIwDoE/TfKyWFHHlgI/AAAAAAAAAK8/WTnb31qQ89k/s72-c/152502539_c4cb9121eb.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-331833813721941418</id><published>2011-06-04T14:55:00.001-07:00</published><updated>2011-06-04T14:58:00.406-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='miscellaneous files operations'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Moving a File One Level Upper</title><summary type='text'>We were asked via e-mail about moving files one level upper. Suppose this short example will be useful for everyone:MOVE 1.ext ..\1.extOf course, the file to be moved and the batch script have to be placed in the same folder.</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/331833813721941418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/06/moving-file-one-level-upper.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/331833813721941418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/331833813721941418'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/06/moving-file-one-level-upper.html' title='Moving a File One Level Upper'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-7781170461096890908</id><published>2011-05-29T12:18:00.000-07:00</published><updated>2011-05-29T12:58:24.293-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='purposes'/><category scheme='http://www.blogger.com/atom/ns#' term='dr.batcher'/><title type='text'>How to Start a Batch Script in Background Mode</title><summary type='text'>It is sometimes useful  to run batch scripts in a background mode without showing users the console window with the script's input and output. There are dozens of service scripts that perform some tasks while the user is working with its usual software. But there is a problem to start all these scripts in a background mode.Let us remind that our award-winning batch files editor Dr.Batcher lets </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/7781170461096890908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/05/how-to-start-batch-script-in-background.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7781170461096890908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7781170461096890908'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/05/how-to-start-batch-script-in-background.html' title='How to Start a Batch Script in Background Mode'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-HFH2WXk6iLk/TeKkcdiLZFI/AAAAAAAAAKw/ErexA1VZojg/s72-c/Explorer%2BIcon.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-7075800849558103449</id><published>2011-05-24T18:12:00.000-07:00</published><updated>2011-05-24T18:23:24.026-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='registry'/><category scheme='http://www.blogger.com/atom/ns#' term='operations with date and time'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Deleting a Registry Branch at the Given Time</title><summary type='text'>How to delete certain branch in system registry with the help of batch files? The task seems to be quite difficult, but fortunately it is not so hard to implement it. All you actually need to perform this operation is the single line of batch code:at 00:36 reg delete HKLM\Software\MyPrg /f Don't forget to change the time and registry branch before using this solution. You can use our </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/7075800849558103449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/05/deleting-registry-branch-at-given-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7075800849558103449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7075800849558103449'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/05/deleting-registry-branch-at-given-time.html' title='Deleting a Registry Branch at the Given Time'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-BvntpTyzhPE/TdxaBEtzKVI/AAAAAAAAAKo/DLntji_vHLA/s72-c/windows-registry-icon.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-2446544854733426856</id><published>2011-05-22T15:31:00.000-07:00</published><updated>2011-05-22T16:09:39.149-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='random numbers'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Generating a Sequence of Random Numbers in Batch Files</title><summary type='text'>It's sometimes necessary to generate a sequence of random numbers in a script. In this blog you can find some posts on dealing with random numbers, still this question has never been discussed. Here is an example that shows how to generate and print on the console 99 random numbers. You can use our award-winning batch file editor to redirect the output to a text file and then build a plot in </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/2446544854733426856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/05/generating-sequence-of-random-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2446544854733426856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2446544854733426856'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/05/generating-sequence-of-random-numbers.html' title='Generating a Sequence of Random Numbers in Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-TPgDQGAPP7g/TdmTNNiPYzI/AAAAAAAAAKg/N-Pz1yf4wVM/s72-c/stones2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-8485690594151477955</id><published>2011-05-20T16:57:00.000-07:00</published><updated>2011-05-22T16:14:23.269-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Useful Update for the Previous Blog Post</title><summary type='text'>After publishing the previous blog post, we have received a message with the script that lets one avoid printing all the details of pinging many IP addresses and saying which of them are available instead. It is really a handy and useful script and we decided to share it with the readers of our blog.@echo offfor /l %%i in (1,1,255) do (  ping -n 1 192.168.1.%%i | findstr "TTL=" 1&gt;nul &amp;&amp; (     </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/8485690594151477955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/05/useful-update-for-previous-blog-post.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8485690594151477955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8485690594151477955'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/05/useful-update-for-previous-blog-post.html' title='Useful Update for the Previous Blog Post'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-3704805390209867643</id><published>2011-05-17T02:05:00.000-07:00</published><updated>2011-05-22T16:13:51.207-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='loops'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Another Way to Ping Many IPs at Once</title><summary type='text'>We have already discussed how to ping the given list of IP addresses. Now let's look what we can do if this list isn't placed in a text file. As usual, the solution is very simple:for /L %%i in (1, 1, 255) do ping 192.168.1.%%iOf course, you have to use your own subnet mask instead of 192.168.1 in the example above. Hope this small script will help you to write your own powerful batch files.</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/3704805390209867643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/05/another-way-to-ping-many-ips-at-once.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3704805390209867643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3704805390209867643'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/05/another-way-to-ping-many-ips-at-once.html' title='Another Way to Ping Many IPs at Once'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-RokA_gHaL0A/TdI9FAaLS_I/AAAAAAAAAKY/qGOK0758hMc/s72-c/917c4a053eb24e23da957bc21ac9f956.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-7394159301525926753</id><published>2011-05-15T14:06:00.000-07:00</published><updated>2011-05-17T02:21:54.549-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='calculations'/><category scheme='http://www.blogger.com/atom/ns#' term='miscellaneous files operations'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Checking File Size in Batch Files</title><summary type='text'>It's sometimes necessary  to check the size of a given file. For example, if you are to delete too big files on your hard drive or split single file into many parts. As usual, batch files are powerful enough to perform such task. The example below shows how to check batch file size (file is called 1.txt) and exit the script if the size is equal to 100 Kb.for %%a in (1.txt) do if %%~za EQU 102400 </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/7394159301525926753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/05/checking-file-size-in-batch-files.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7394159301525926753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7394159301525926753'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/05/checking-file-size-in-batch-files.html' title='Checking File Size in Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-K88wMkkStbc/TdBGpN9mI9I/AAAAAAAAAKQ/p3WV3mbtAT4/s72-c/3267647833_5a93cf8ea7.jpg' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-7545638951699808744</id><published>2011-05-13T15:08:00.000-07:00</published><updated>2011-05-17T02:22:42.507-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='random numbers'/><category scheme='http://www.blogger.com/atom/ns#' term='jokes'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>A Small Quiz Script :)</title><summary type='text'>There are lots of useful scripts already published on this blog. You can create even more of them with the help of Dr.Batcher. Now it's time for jokes. Let us introduce a small quiz script that can be useful to check whether you are lucky today. Hope you'll enjoy it:)@echo off set i=0 echo Thinking of a number... :rand set nmb=%random% if %nmb% GTR 10 goto randif %nmb% EQU 0 goto randecho Now you</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/7545638951699808744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/05/small-quiz-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7545638951699808744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7545638951699808744'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/05/small-quiz-script.html' title='A Small Quiz Script :)'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-gRwoDz5Nlto/Tc2wkBUP_aI/AAAAAAAAAKA/pKM4gKEGhBM/s72-c/question.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-3800160911806340492</id><published>2011-05-08T16:52:00.000-07:00</published><updated>2011-05-17T02:27:37.538-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='executing external programs'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Search for Running Process and Start It  if It Is not Found</title><summary type='text'>It is quite a common task to start some processes in an automatic way. Of course we usually have no need to run many instances of the application simultaneously, thus we have to check running processes first. Fortunately, batch files are pretty useful in this case and let us solve the problem in a fast and simple way. The solution will look like:tasklist | findstr /i yourapp.exe 1&gt;nul || start ""</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/3800160911806340492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/05/search-for-running-process-and-start-it.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3800160911806340492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3800160911806340492'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/05/search-for-running-process-and-start-it.html' title='Search for Running Process and Start It  if It Is not Found'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-fsDCITybhEQ/TccvLNKgv9I/AAAAAAAAAJ4/FO5PGr9onEc/s72-c/Innovation-Process-799858.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-541975605792199518</id><published>2011-05-01T17:00:00.000-07:00</published><updated>2011-05-17T02:30:14.345-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='random numbers'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Random Numbers Generator</title><summary type='text'>As far as you probably know it is not so hard to generate random numbers with the help of batch files. But if you want to make sure that your number is unique among the given sequence of numbers, the task becomes a little bit more complicated. Here is a quite simple solution that can be modified with the help of our powerful batch files editor:@echo offsetlocal:tryset "rand=%random%%random%"if "%</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/541975605792199518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/05/random-numbers-generator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/541975605792199518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/541975605792199518'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/05/random-numbers-generator.html' title='Random Numbers Generator'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-QNFkZDMhRA8/Tb32TPL4NKI/AAAAAAAAAJw/FcG0yqCou5I/s72-c/throwing_dice.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-7997301651521402628</id><published>2011-04-26T14:36:00.000-07:00</published><updated>2011-05-17T02:31:24.700-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='renaming files'/><category scheme='http://www.blogger.com/atom/ns#' term='operations with date and time'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Another Example with Renaming Files</title><summary type='text'>Renaming files is likely the most common task being automated with the help of batch files. Here we will discuss how to add the date of file's creation to its name. As far as you can see, the script to automate this task is quite simple, but you can enhance it with the help of our powerful batch files editor.SETLOCAL ENABLEDELAYEDEXPANSION@echo off  for /f %%i in ('dir /b') do (          set aaa=</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/7997301651521402628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/04/another-example-with-renaming-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7997301651521402628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7997301651521402628'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/04/another-example-with-renaming-files.html' title='Another Example with Renaming Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-2826202488802159656</id><published>2011-04-23T16:47:00.000-07:00</published><updated>2011-05-17T02:33:45.663-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='disk'/><category scheme='http://www.blogger.com/atom/ns#' term='loops'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>How to Remove Numbers from Filenames</title><summary type='text'>Let's discuss another simple task that can be automated with help of batch files. The task is to remove numbers from filenames like these:name[1].extname[2].extname[3].extname[4].extname[5].ext...So what do you have to do? You can use a simple script like this:@echo off for /f "tokens=1,2,3 delims=[]" %%a in ('dir /b *[1].*') do ren %%a[%%b]%%c %%a%%c Hope you'll find it useful.</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/2826202488802159656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/04/how-to-remove-numbers-from-filenames.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2826202488802159656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2826202488802159656'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/04/how-to-remove-numbers-from-filenames.html' title='How to Remove Numbers from Filenames'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-wafHZtPE3aI/TbNndOc6nSI/AAAAAAAAAJo/17D5yK9ayXw/s72-c/1175764090_35f7f7183cfda36c956f671fc641ea2f.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-3979235355823308427</id><published>2011-04-20T15:59:00.000-07:00</published><updated>2011-05-17T02:35:54.322-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='working with text files'/><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Copying Strings from One File to Another</title><summary type='text'>The task to be discussed in this post looks very simple: copy some strings from a text file to another one. The file and the amount of strings are given. Here you can see the solution:@echo offsetlocal enabledelayedexpansionset "N=17"set "count=0"for /f "tokens=*" %%a in (first_file.txt) do (if !count! GEQ !N! goto :EOFecho %%a&gt;&gt;second_file.txtset /a "count+=1") But you can also try another </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/3979235355823308427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/04/copying-strings-from-one-file-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3979235355823308427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3979235355823308427'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/04/copying-strings-from-one-file-to.html' title='Copying Strings from One File to Another'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/--ULiPNr9yJY/Ta9nUdsZkzI/AAAAAAAAAJg/YA5KsWUhfGg/s72-c/copy-paste.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-1746307142624228355</id><published>2011-04-19T03:19:00.003-07:00</published><updated>2011-04-19T03:22:33.110-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dr.batcher'/><category scheme='http://www.blogger.com/atom/ns#' term='updates'/><title type='text'>Dr.Batcher 2.1.5 is Released</title><summary type='text'>We are glad to introduce the new version of our award-winning software to create batch files. In this version added French translation, support for checking used bookmarks on toolbar, small bugfixes.Click here to download it right now. Hope you'll enjoy our work.</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/1746307142624228355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/04/drbatcher-215-is-released.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1746307142624228355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1746307142624228355'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/04/drbatcher-215-is-released.html' title='Dr.Batcher 2.1.5 is Released'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-nbAgirOH8Ss/Ta1h2q8cJWI/AAAAAAAAAJY/oV5uDEAwmjs/s72-c/LogoNewY.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-8868641277803091974</id><published>2011-04-17T15:00:00.000-07:00</published><updated>2011-05-17T02:37:46.418-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='executing external programs'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>How to Answer Y/N to Console Program from Batch File</title><summary type='text'>Sometimes it is necessary to answer 'Y' or 'N' to a console program during the execution of a batch file. If your file is running under a user's sight, it causes no problems, but if you need to run it in a completely autonomous mode, you have to find a solution.The solution is really simple: you should just write 'echo Y | ' in your batch file, where the name of a program that wants to know your </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/8868641277803091974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/04/how-to-answer-yn-to-console-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8868641277803091974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8868641277803091974'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/04/how-to-answer-yn-to-console-program.html' title='How to Answer Y/N to Console Program from Batch File'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-RTS05NBRHAw/Tatk-akyjaI/AAAAAAAAAJQ/TNAu2VxJp6w/s72-c/yn.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-6154223476415471997</id><published>2011-04-15T16:48:00.000-07:00</published><updated>2011-05-17T02:42:22.427-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='screen tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>How to Turn Off Screen Output in Console</title><summary type='text'>Not long ago we received a letter with the following question:How to make a command not to type anything while its execution? I tried CLS but it makes nothing... Though our award-winning batch files editor Dr.Batcher allows you to create scripts very easy, it still doesn't let you just check a box to turn screen output off (we'll implement this feature one day, we promise). So you should use the </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/6154223476415471997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/04/how-to-turn-off-screen-output-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/6154223476415471997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/6154223476415471997'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/04/how-to-turn-off-screen-output-in.html' title='How to Turn Off Screen Output in Console'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-0Aid9da54J0/TajeL2pM_dI/AAAAAAAAAJA/RlV0L3DSSUc/s72-c/command-prompt-defoult-300x293.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-3294085345002019777</id><published>2011-03-29T07:12:00.001-07:00</published><updated>2011-05-17T02:43:17.709-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='working with text files'/><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='loops'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Adding Quotes to Lines in Text</title><summary type='text'>Let's discuss quite a simple task today. Imagine: you need to change each line in a text file by adding quotes to it. I mean you want to get from list like listitem1, listitem2, listitem3... list like "listitem1", "listitem2", "listitem3". This is quite a simple task, and the script solution looks like this:@echo offfor /f "usebackq tokens=*" %%c in ("about.txt") do (   echo "%%c",&gt;&gt; about1.txt) </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/3294085345002019777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/03/adding-quotes-to-lines-in-text.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3294085345002019777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3294085345002019777'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/03/adding-quotes-to-lines-in-text.html' title='Adding Quotes to Lines in Text'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-uIXiddVdSaU/TZHsSgDNN2I/AAAAAAAAAI4/KG4CQCx8FII/s72-c/quotation-marks.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-7361221024160496827</id><published>2011-03-25T13:49:00.000-07:00</published><updated>2011-05-17T02:44:09.277-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='for programmers'/><category scheme='http://www.blogger.com/atom/ns#' term='loops'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>How to Register Many DLLs/OCXs at Once</title><summary type='text'>It is sometimes necessary to register a COM or ActiveX library. As far as you know, it is  easy to perform it with help of Regsvr32 utility by Microsoft. But it is hard to type the name of library to be registered each time when you need to register a lot of them. It's really easier to copy all needful files to a single folder and then register them all with help of really simple script:for %%i </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/7361221024160496827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/03/how-to-register-many-dllsocxs-at-once.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7361221024160496827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7361221024160496827'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/03/how-to-register-many-dllsocxs-at-once.html' title='How to Register Many DLLs/OCXs at Once'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-VRmRAj3D9Oc/TY0GoS8hPcI/AAAAAAAAAIw/TuMRZg9nDh8/s72-c/Run_quartz_dll.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-8237959941549352051</id><published>2011-03-23T15:20:00.000-07:00</published><updated>2011-03-23T15:29:00.089-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='announcements'/><category scheme='http://www.blogger.com/atom/ns#' term='dr.batcher'/><category scheme='http://www.blogger.com/atom/ns#' term='updates'/><title type='text'>Dr.Batcher 2.1.4 Is Released</title><summary type='text'>We are  glad  to introduce an update  for our award-winning batch files  editor. In this version you will find  the  following new features:tab-bar with bookmarks in professional mode;support for declining use of unnecessary list parameters in simple mode;support for viewing latest post from 'World of Batch Files' blog on start;10 new examples;improved compatibility with Windows 7 64-bit;lots of </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/8237959941549352051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/03/drbatcher-214-is-released.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8237959941549352051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8237959941549352051'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/03/drbatcher-214-is-released.html' title='Dr.Batcher 2.1.4 Is Released'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-AgrNrHAOY_o/TYpzYoso5QI/AAAAAAAAAIo/N2zPtZKe_6I/s72-c/LogoNewY.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-1544937589646795176</id><published>2011-03-18T10:28:00.000-07:00</published><updated>2011-05-17T02:45:29.296-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='screen tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Hiding Password Input in Batch Files</title><summary type='text'>It is sometimes necessary to ask user a password from a batch script. Unfortunately, batch files don't allow you to hide input with "*"s, like ordinary password forms in Windows or Web. Of course, the easiest way is to leave everything as it is, but much better is to hide the password without showing anything. The following batch script shows you how to perform such hiding of characters:@echo </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/1544937589646795176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/03/hiding-password-input-in-batch-files.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1544937589646795176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1544937589646795176'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/03/hiding-password-input-in-batch-files.html' title='Hiding Password Input in Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-IAvvD9TxRqo/TYOkMD2gQaI/AAAAAAAAAIg/-wRGiKQX9zQ/s72-c/0cc717bdbfcf21ab4839f71be25.png' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-4648094347254470448</id><published>2011-03-14T18:28:00.000-07:00</published><updated>2011-05-17T02:48:05.475-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Ping List of IPs</title><summary type='text'>It's pretty easy to ping a single IP with help of standard 'ping' command. But sometimes it's necessary to ping several addresses at once. Unfortunately, ping's syntax doesn't allow you passing the prepared text file as an input parameter to check all IPs listed in it. What to do? Just download Dr.Batcher and start writing really useful script in it.The script is quite simple. If looks like this:</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/4648094347254470448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/03/ping-list-of-ips.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4648094347254470448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4648094347254470448'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/03/ping-list-of-ips.html' title='Ping List of IPs'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-yeI6AEmR2EU/TX7CG7l6K8I/AAAAAAAAAIY/YrInwiJs7sg/s72-c/serial.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-268867930473384099</id><published>2011-03-08T14:54:00.000-08:00</published><updated>2011-05-17T02:48:52.750-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='conditions'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>How to Avoid Using Gotos</title><summary type='text'>Batch files make you to use 'goto', an obsolete and quite unpleasant construction that makes your code unreadable. This is a common opinion, but I want to discuss the way to avoid 'goto' commands in your batch scripts.The traditional way to build batch files since the early days of MS-DOS looks like this:if condition goto :THENrem Something like ‘else’rem ...goto IF_END:THENrem Something like ‘</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/268867930473384099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/03/how-to-avoid-using-gotos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/268867930473384099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/268867930473384099'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/03/how-to-avoid-using-gotos.html' title='How to Avoid Using Gotos'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-JvknUk8wbZs/TXa2NKsoFWI/AAAAAAAAAIQ/IyPP0RWeFAw/s72-c/4384887233_2a48bf994b.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-3692673964560113481</id><published>2011-03-04T16:17:00.000-08:00</published><updated>2011-05-17T02:50:29.497-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='step-by-step'/><category scheme='http://www.blogger.com/atom/ns#' term='WWW'/><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Batch File to Open URL</title><summary type='text'>Today I am glad to introduce this short post that should give the answer to a short user's question. The question was "How to open URL via batch file?".Fortunately, to open URL with the default system browser, you should do almost nothing. The sequence of action looks like this:1) Start Dr.Batcher and create a new batch script;2) Switch to Simple mode;3) Add a new command named "Start a Separate </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/3692673964560113481/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/03/batch-file-to-open-url.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3692673964560113481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3692673964560113481'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/03/batch-file-to-open-url.html' title='Batch File to Open URL'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-nRKHZrzMZDM/TXGCd-3dsmI/AAAAAAAAAIA/FdgGIcwf3-w/s72-c/inet.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-8581787703685734638</id><published>2011-03-02T10:43:00.000-08:00</published><updated>2011-03-02T11:00:07.546-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='cleaning'/><category scheme='http://www.blogger.com/atom/ns#' term='operations with date and time'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Remove All Files Except Today's One with Help of Batch Files</title><summary type='text'>Task to be discussed today is "How to remove all files from the specified folder except the file with today's name?". This is not a very common task, but it is useful for making different backup batch scripts. And this task is simple, as far as you can see. The code below shows how to delete all files in the current folder except the file which name contains today's date.@echo offattrib +r *%date</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/8581787703685734638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/03/remove-all-files-except-todays-one-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8581787703685734638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8581787703685734638'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/03/remove-all-files-except-todays-one-with.html' title='Remove All Files Except Today&apos;s One with Help of Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-EqyRJiLDkSs/TW6TU6tnNCI/AAAAAAAAAH4/ghUOVD6RFb0/s72-c/%25D0%25BA%25D0%25B0%25D0%25BB%25D0%25B5%25D0%25BD%25D0%25B4%25D0%25B0%25D1%2580%25D1%258C%2B2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-3172847849587172661</id><published>2011-02-24T02:36:00.000-08:00</published><updated>2011-05-17T02:51:55.041-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='cleaning'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Remove Trash Files with Help of Batch Scripts</title><summary type='text'>We have already discussed some aspects of removing system trash with help of batch files. Still that batch script was not able to remove all system trash by a single mouse click. Script below improves this inconvenience and allows you to remove all system trash under Windows XP. You can easily change it according to your needs with the help of our batch files editor.if exist c: call :RSVI cif </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/3172847849587172661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/02/remove-trash-files-with-help-of-batch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3172847849587172661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3172847849587172661'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/02/remove-trash-files-with-help-of-batch.html' title='Remove Trash Files with Help of Batch Scripts'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-HcA9mApiTXk/TWY5V7uRVlI/AAAAAAAAAHM/qSxCuDOX7NA/s72-c/musor2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-4360430337387702911</id><published>2011-02-22T16:19:00.000-08:00</published><updated>2011-02-22T16:41:43.294-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='loops'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Using Variables Inside Loops</title><summary type='text'>There are two really useful constructions in batch files: conditions (IFs) and loops (FORs). Both of theme are extremely widely used, and both of them have some difficulties for beginners. Here we are going to discuss one of these difficulties concerning loops.The difficulty is called 'local variables'. As far as you know, to retrieve the value of certain variable, you have to use the following </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/4360430337387702911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/02/using-variables-inside-loops.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4360430337387702911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4360430337387702911'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/02/using-variables-inside-loops.html' title='Using Variables Inside Loops'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-pYAYWcIcAzQ/TWRXZPO0viI/AAAAAAAAAHE/2sQ_F9l4RJc/s72-c/life_cycle.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-4854061527095168851</id><published>2011-02-17T12:58:00.000-08:00</published><updated>2011-05-17T02:52:55.238-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='calculations'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Batch Calculator</title><summary type='text'>Here is a small example of 'Set' command usage. The script below is a calculator, and as far as you can see we do almost nothing to calculate anything - just take the user's input data and send it to 'set' command that  makes all calculations. Of course, this example is not a serious calculator, but it shows a very useful way to make some operations in batch scripts. You can easily include this </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/4854061527095168851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/02/batch-calculator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4854061527095168851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4854061527095168851'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/02/batch-calculator.html' title='Batch Calculator'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-F8Sr_1Du3IY/TV2RzFPH7uI/AAAAAAAAAG8/IOI1bog1C7k/s72-c/arif.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-2895906659985021408</id><published>2011-02-13T07:45:00.000-08:00</published><updated>2011-02-13T08:00:00.238-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='disk'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Retrieving Drive Letters through Batch Files</title><summary type='text'>The task to be discussed today is retrieving already occupied drive letters in Windows. Of course, through batch scripting. This batch file is quite small and simple, and after its execution you can see all the letters on the screen. Of course, you can easily change this batch file.@echo offsetlocal enabledelayedexpansionecho list volume&gt;"%temp%\ds.txt"for /f "skip=8 tokens=3" %%a in ('diskpart /</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/2895906659985021408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/02/retrieving-drive-letters-through-batch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2895906659985021408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2895906659985021408'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/02/retrieving-drive-letters-through-batch.html' title='Retrieving Drive Letters through Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-Wi8OBlDgXvI/TVf_cuk6e6I/AAAAAAAAAG0/i8ofHsjurRU/s72-c/screenshot.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-5754675544213298133</id><published>2011-02-11T09:00:00.001-08:00</published><updated>2011-05-17T02:54:02.897-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='for programmers'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Merging Sources with Help of Batch Scripting</title><summary type='text'>Batch files are exteremely useful for programmers. Developers can use batch scripting to automate boring jobs like making builds and packaging software. And not only for this - for example, to merge the existing dozens of script files to the single one. Here is the example of script that will help you to merge many JavaScript files placed in the same folder into the single script file. You can </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/5754675544213298133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/02/merging-sources-with-help-of-batch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/5754675544213298133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/5754675544213298133'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/02/merging-sources-with-help-of-batch.html' title='Merging Sources with Help of Batch Scripting'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-9nDBdLfrnY8/TVVuLWY9jlI/AAAAAAAAAGs/keaR5b26EXE/s72-c/merge.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-474231317357207531</id><published>2011-02-09T05:55:00.000-08:00</published><updated>2011-02-09T06:13:19.332-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='screen tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>How To Print a Line without Closing CR\LF in Batch Files</title><summary type='text'>'Echo' is likely the most often used command in the whole batch scripting. The only disadvantage of this command is ending CR\LF that is always being put after the text. Unfortunately, there is no command that can print text without closing CR\LF in the standard set of commands provided by MS. Thus we have to write quite a large amount of code to implement this feature.Here is the code:@ECHO OFF&gt;</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/474231317357207531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/02/how-to-print-line-without-closing-crlf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/474231317357207531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/474231317357207531'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/02/how-to-print-line-without-closing-crlf.html' title='How To Print a Line without Closing CR\LF in Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MeXL20QEZ8o/TVKe0VuEaoI/AAAAAAAAAGk/CQEoW192H9k/s72-c/IMG_8684.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-4949283875642148767</id><published>2011-02-05T06:29:00.000-08:00</published><updated>2011-05-17T03:02:09.410-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='enumeration'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Enumeration in Batch Files</title><summary type='text'>It's sometimes necessary to enumerate numbers with help of batch files. It may be needful for counting and renaming files, for adding the numbers to lines of different lists in text files, and for dozens of other different purposes. Here is a small script that will help you to enumerate anything you want. Of course, it is not hard to modify this script with help of Dr.Batcher and apply it to your</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/4949283875642148767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/02/enumeration-in-batch-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4949283875642148767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4949283875642148767'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/02/enumeration-in-batch-files.html' title='Enumeration in Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MeXL20QEZ8o/TU1ku87vHPI/AAAAAAAAAGc/bhbaNefet8s/s72-c/numbers.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-4511792890790139572</id><published>2011-02-03T12:50:00.000-08:00</published><updated>2011-05-17T03:03:09.188-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='random numbers'/><category scheme='http://www.blogger.com/atom/ns#' term='jokes'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Retrieving Random String from Batch File</title><summary type='text'>The task to be discussed in this post is retrieving a random  string from the given text file and then printing it on the screen. When is it useful? For example, you can create the list of user's addresses and send someone a message via 'net send' command as a simple joke. Or even automate the creation of SEO texts with the help of batch files. Enjoy the code:@echo off  setlocal  set "lines=0"  </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/4511792890790139572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/02/retrieving-random-string-from-batch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4511792890790139572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4511792890790139572'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/02/retrieving-random-string-from-batch.html' title='Retrieving Random String from Batch File'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeXL20QEZ8o/TUsYIFeJ9BI/AAAAAAAAAGU/H0qhcTjOvMI/s72-c/batch-icon.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-7993937872129156682</id><published>2011-02-01T15:28:00.000-08:00</published><updated>2011-02-01T15:48:21.469-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='sorting'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>How to Sort Out Files of Differnet Types with Help of Batch Files, Chapter II: Sorting Text Files by Their Contents</title><summary type='text'>We have already discussed the question of sorting files of different types with help of batch scripts. But what's about sorting text files by their contents? This task is also quite simple and can be done in a few lines of code. Of course, it becomes even simpler if you use Dr.Batcher to create batch scripts.So here is the example that can be used in sorting LOGs of different applications or </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/7993937872129156682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/02/how-to-sort-out-files-of-differnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7993937872129156682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7993937872129156682'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/02/how-to-sort-out-files-of-differnet.html' title='How to Sort Out Files of Differnet Types with Help of Batch Files, Chapter II: Sorting Text Files by Their Contents'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MeXL20QEZ8o/TUiam-eDNgI/AAAAAAAAAGM/WCg4yA8zHXM/s72-c/NotepadS.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-5050527120366222955</id><published>2011-01-27T09:26:00.000-08:00</published><updated>2011-05-17T03:03:52.171-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='registry'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>How to Export Registry Keys Through Batch File</title><summary type='text'>Long time ago I wrote a post on having a deal with Windows registry in batch files. It's time to return to this topic and share a small, but still very useful batch file that will help you to export registry keys to a REG file. This code is really simple, still you can include it into complex script that you create with help of our powerful batch files editor.Here is the code of this batch file:@</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/5050527120366222955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/01/how-to-export-registry-keys-through.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/5050527120366222955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/5050527120366222955'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/01/how-to-export-registry-keys-through.html' title='How to Export Registry Keys Through Batch File'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MeXL20QEZ8o/TUGu_VVZ5gI/AAAAAAAAAGA/pLys88Eu3-s/s72-c/Registry_Editor_icon.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-3784188178532040373</id><published>2011-01-25T13:36:00.000-08:00</published><updated>2011-01-25T14:16:44.526-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Batch File to Retrieve Batch Files from Network Drive and Pack Them</title><summary type='text'>Here is a useful script that administrators can use to retrieve automatically files from the network drive and pack them immediately after that. All the actions are being logged to the LOG file called by default 1.log. You can easily modify this script with help of Dr.Batcher, a powerful utility designed to create and modify batch files.@echo Starting&gt;&gt; 1.log@Echo off@DATE /t &gt;&gt; 1.log@TIME /T &gt;&gt; </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/3784188178532040373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/01/batch-file-to-retrieve-batch-files-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3784188178532040373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3784188178532040373'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/01/batch-file-to-retrieve-batch-files-from.html' title='Batch File to Retrieve Batch Files from Network Drive and Pack Them'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MeXL20QEZ8o/TT9Ick6EtSI/AAAAAAAAAF4/z_uk6Ch2-3U/s72-c/network_drive.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-3731902167094978756</id><published>2011-01-22T18:21:00.000-08:00</published><updated>2011-05-17T03:05:23.487-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='restarting'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Batch File To Restart Explorer And Reopen Windows</title><summary type='text'>Though this is not a very common task, I suppose this example of batch scripting is still very useful for advanced users of batch files.  You can change anything you want in a couple of minutes, especially with help of our powerful and handy batch files editor.Here is the code to restart Windows Explorer and reopen all windows of the running applications:@echo off setlocal enabledelayedexpansion </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/3731902167094978756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/01/batch-file-to-restart-explorer-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3731902167094978756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3731902167094978756'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/01/batch-file-to-restart-explorer-and.html' title='Batch File To Restart Explorer And Reopen Windows'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MeXL20QEZ8o/TTuT85NkixI/AAAAAAAAAFw/SrKjwkCXzEg/s72-c/installation-windows-ie-17-restart.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-5701887878645033947</id><published>2011-01-19T06:41:00.000-08:00</published><updated>2011-01-19T07:43:21.655-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='step-by-step'/><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='restarting'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><title type='text'>Detecting the Insertion of USB Flash in Batch Files</title><summary type='text'>How to detect that user inserts USB Flash drive and make computer shut down after this? Here you can see step-by-step explanation.1. Download and install Dr.Batcher, the program designed to create and edit batch files.2. Start Dr.Batcher and create new empty batch script (File-&gt;New-&gt;Empty Batch Script).3. Add command named "Display a message" (Command-&gt;Add), click OK in the "Add Command" dialog.4</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/5701887878645033947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/01/detecting-insertion-of-usb-flash-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/5701887878645033947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/5701887878645033947'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/01/detecting-insertion-of-usb-flash-in.html' title='Detecting the Insertion of USB Flash in Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeXL20QEZ8o/TTb_GZNRtdI/AAAAAAAAAEo/HrsOYx1Ek08/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-5031850446303050077</id><published>2011-01-17T17:49:00.000-08:00</published><updated>2011-05-17T03:13:03.480-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='development'/><category scheme='http://www.blogger.com/atom/ns#' term='dr.batcher'/><category scheme='http://www.blogger.com/atom/ns#' term='updates'/><title type='text'>What Does Bring Dr.Batcher 2.1.3?</title><summary type='text'>We are glad to introduce Dr.Batcher 2.1.3. This version fixes a lot of issues reported by the users of 32-bit version of Windows 7, in the following version we are going to fix issues with running Dr.Batcher under 64-bit Winfows 7. What else will you find in this version? Here is the complete list of new features:new options for changing the way of starting Dr.Batcher;support for  storing spaces </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/5031850446303050077/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/01/what-does-bring-drbatcher-213.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/5031850446303050077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/5031850446303050077'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/01/what-does-bring-drbatcher-213.html' title='What Does Bring Dr.Batcher 2.1.3?'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MeXL20QEZ8o/TTTztsRZc7I/AAAAAAAAAEQ/3JWI9sCiig0/s72-c/opt1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-3016999294201408132</id><published>2011-01-15T06:16:00.000-08:00</published><updated>2011-05-17T03:14:40.078-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3rd party solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorials'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Step-by-Step Tutorial for Writing Advanced Batch Files</title><summary type='text'>Though Dr.Batcher allows everyone to create batch files without having any knowledge in this area, we are asked sometimes about step-by-step lessons on batch files creation. Of course we are thinking of writing such tutorial, but that's long time matter. So here are some links on tutorials created by other people.You can find a really good lessons on batch files at http://www.allenware.com/icsw/</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/3016999294201408132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/01/step-by-step-tutorial-for-writing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3016999294201408132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3016999294201408132'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/01/step-by-step-tutorial-for-writing.html' title='Step-by-Step Tutorial for Writing Advanced Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MeXL20QEZ8o/TTGuU1L78mI/AAAAAAAAADw/dsjFD-UfInA/s72-c/1688897198_28302e8ce6_o.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-8274961813814820337</id><published>2011-01-13T11:15:00.000-08:00</published><updated>2011-05-17T03:17:30.512-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='sorting'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>How to Sort Out Files of Differnet Types with Help of Batch Files</title><summary type='text'>Have you got directories  with thousands and thousands of unsorted files? Sure everyone has. I also have folder called 'Downloads' where I place almost everything downloaded from the Web. Usually I clear it once or twice per month and then start to fill it with 'digital garbage' again. But in this case I often lose gems among the garbage, that's this week I decided to sort files in 'Downloads' </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/8274961813814820337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/01/how-to-sort-out-files-of-differnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8274961813814820337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8274961813814820337'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/01/how-to-sort-out-files-of-differnet.html' title='How to Sort Out Files of Differnet Types with Help of Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeXL20QEZ8o/TS9SyVZMgCI/AAAAAAAAADo/vwzUb8kaglg/s72-c/17-color-drawing-of-three-squirrels-cautiously-sorting-through-nuts-public-domain.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-2769191823667579160</id><published>2011-01-08T17:30:00.000-08:00</published><updated>2011-01-08T18:02:56.292-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='cleaning'/><title type='text'>Batch File To Clean Temp Folder</title><summary type='text'>There is a lot of utilities for Windows designed especially for cleaning temporary files in Windows Temp folder and some other places where they usually can be found. Some of these programs are freeware, some of them are paid. With help of small batch script instead of one of the such utilities you can save your money and some space on HDD. Also this batch script gives you great flexibility: you </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/2769191823667579160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/01/batch-file-to-clean-temp-folder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2769191823667579160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2769191823667579160'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/01/batch-file-to-clean-temp-folder.html' title='Batch File To Clean Temp Folder'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MeXL20QEZ8o/TSkVjvFbyUI/AAAAAAAAADg/1aKCurLIQbI/s72-c/%25D0%259C%25D1%2583%25D1%2581%25D0%25BE%25D1%2580%25D0%25BD%25D1%258B%25D0%25B9%2B%25D0%25B1%25D0%25B0%25D0%25BA.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-5804205549998958908</id><published>2011-01-05T16:00:00.000-08:00</published><updated>2011-05-17T03:18:09.335-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='mistakes'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Funny But Common Mistake</title><summary type='text'>Once Dr.Batcher's support team received a letter describing a problem with running batch file after re-installing Windows. The batch file was called 'shutdown.bat', and its purpose was to turn off computer in single mouse click. It  contained the following line of code:shutdown -s -t 0Do you know what was wrong? Of course, the renaming file to 'shutdown1.bat' completely solved the problem. This </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/5804205549998958908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/01/funny-but-common-mistake.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/5804205549998958908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/5804205549998958908'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/01/funny-but-common-mistake.html' title='Funny But Common Mistake'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeXL20QEZ8o/TSUOaD0frAI/AAAAAAAAADY/EbLHs13V2wM/s72-c/Auto_ShutDown_XP_Professional-7321.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-4070536076469750585</id><published>2011-01-03T16:08:00.000-08:00</published><updated>2011-01-13T11:40:21.400-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='links'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Five Really Useful Sites On Batch Files</title><summary type='text'>For those who often deal with batch files we are glad to advice some useful sites  with different tips, tricks and solutions for batch files. Hope you'll find some of them useful if you use to read this blog.Rob van der Woude's Scripting Pages (http://www.robvanderwoude.com/battech.php). The most useful site not only for those who use batch files, but also for those who use newer scripting </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/4070536076469750585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2011/01/five-really-useful-sites-on-batch-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4070536076469750585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4070536076469750585'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2011/01/five-really-useful-sites-on-batch-files.html' title='Five Really Useful Sites On Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MeXL20QEZ8o/TSJoe1uSLzI/AAAAAAAAADQ/1B8JVFss1rE/s72-c/0000000001.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-6453321416044050522</id><published>2010-12-30T14:31:00.000-08:00</published><updated>2010-12-30T15:53:23.292-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Batch File for IP Change</title><summary type='text'>There is a plenty of users that want to change the IP address of a computer with help of batch files. There is a simple way to perform it, all you need is standard netsh command and some imagination to 'invent' a new IP address.The following line of code will help you to set the IP address and the subnet mask:netsh int ip set address name = "LAN" source = static addr = 127.0.0.1 mask = </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/6453321416044050522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/12/batch-file-for-ip-change.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/6453321416044050522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/6453321416044050522'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/12/batch-file-for-ip-change.html' title='Batch File for IP Change'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeXL20QEZ8o/TR0bXPwns3I/AAAAAAAAADI/5eE2bE7TvRE/s72-c/thumb_Network_Sharing_Center.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-3643299881302715307</id><published>2010-12-24T18:10:00.000-08:00</published><updated>2011-01-05T16:05:45.549-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cleaning'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Batch File to Delete Itself</title><summary type='text'>Sometimes users of Dr.Batcher ask us how to create a batch script that is able to delete itself. It is not hard, and the example of self-destructive script is placed in Dr.Batcher's installation package.The trick is to call command-line processor (previously known as Command.com) with instruction to delete this batch file. While the processor is working, the source batch file will be already </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/3643299881302715307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/12/batch-file-to-delete-itself.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3643299881302715307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3643299881302715307'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/12/batch-file-to-delete-itself.html' title='Batch File to Delete Itself'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MeXL20QEZ8o/TRVVghPMNuI/AAAAAAAAADA/OqmPxsgi_N0/s72-c/self-destruct-red-button.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-659171438766856717</id><published>2010-12-11T17:03:00.000-08:00</published><updated>2010-12-11T17:17:56.088-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3rd party solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Interesting  Way To Delete Empty Folders through Batch Files</title><summary type='text'>Deleting different garbage with help of batch files is quite a  common task. Quite interesting way of solving this problem I have found on http://www.ehow.com/how_6648535_search-delete-empty-folders.html. The author of this article plays with parameters of DIR command to retrieve the names of all empty folders on a certain logical drive and then saves them to text file. After that  this file </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/659171438766856717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/12/interesting-way-to-delete-empty-folders.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/659171438766856717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/659171438766856717'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/12/interesting-way-to-delete-empty-folders.html' title='Interesting  Way To Delete Empty Folders through Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MeXL20QEZ8o/TQQg133H7-I/AAAAAAAAACs/aSkpvGW7Ync/s72-c/recycle-bin.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-9144344823561370643</id><published>2010-11-28T18:20:00.000-08:00</published><updated>2011-05-22T16:20:20.691-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='development'/><category scheme='http://www.blogger.com/atom/ns#' term='dr.batcher'/><category scheme='http://www.blogger.com/atom/ns#' term='site'/><title type='text'>We're Going to Launch New Site for Dr.Batcher</title><summary type='text'>Mental Works Computing Software is proud of announcing Dr.Batcher's new site under construction. This site will not be just the re-designed old one. We are going to create special new section with tips and articles on batch files. Of course, the design will also be updated. The site will look much better and it'll be easier to navigate on it. Also we plan to create video-tutorials on creating </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/9144344823561370643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/11/were-going-to-launch-new-site-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/9144344823561370643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/9144344823561370643'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/11/were-going-to-launch-new-site-for.html' title='We&apos;re Going to Launch New Site for Dr.Batcher'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeXL20QEZ8o/TPMRCZOApII/AAAAAAAAACk/SUnZKnpBhdc/s72-c/137lw878.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-2696585967917877030</id><published>2010-11-25T04:48:00.000-08:00</published><updated>2011-05-22T16:20:58.713-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='purposes'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>What Tasks Can One Automate with Help of Batch Files?</title><summary type='text'>We are sometimes asked: "What kind of tasks can I automate through batch files?" Our usual answer is "any kind". Of course, it depends on your needs. Here are some common tasks for IT specialists that can be automated with help of batch files.Administrator: creating and restoring backups, changing network settings, cleaning junk files, starting and stopping services...Programmer: making builds, </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/2696585967917877030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/11/what-tasks-can-one-automate-with-help.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2696585967917877030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/2696585967917877030'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/11/what-tasks-can-one-automate-with-help.html' title='What Tasks Can One Automate with Help of Batch Files?'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-4150364035549926384</id><published>2010-11-10T10:06:00.000-08:00</published><updated>2010-11-10T10:27:39.013-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>How to Start or Stop a Windows Service with Help of Batch Files</title><summary type='text'>Some users ask us how can they start Windows service with help of a batch script. That's why we decided to write a short post on this topic in our team's blog.First of all it should be mentioned that starting or stopping some Windows services can make your system work strangely. Thus you should work with services really carefully, especially with standard services installed while the installation</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/4150364035549926384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/11/how-to-start-or-stop-windows-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4150364035549926384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4150364035549926384'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/11/how-to-start-or-stop-windows-service.html' title='How to Start or Stop a Windows Service with Help of Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeXL20QEZ8o/TNrkASIN-hI/AAAAAAAAACc/zannUqj_Z7o/s72-c/6uxjflgt.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-3077582063811067233</id><published>2010-10-25T16:07:00.000-07:00</published><updated>2010-10-25T16:24:51.324-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='development'/><category scheme='http://www.blogger.com/atom/ns#' term='dr.batcher'/><category scheme='http://www.blogger.com/atom/ns#' term='updates'/><title type='text'>Dr.Batcher 2.1 Is Released</title><summary type='text'>Today we're glad to introduce new version of Dr.Batcher. Though there is a lot of different small improvements in it, the main difference between this and previous versions is support for compiling batch files to EXEs. We've tried to make the process of EXE creation as handy as possible, so today you can find a new wizard in Dr.Batcher (choose "Tools" -&gt; "Compile EXE File"). The wizard look like </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/3077582063811067233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/10/drbatcher-21-is-released.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3077582063811067233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3077582063811067233'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/10/drbatcher-21-is-released.html' title='Dr.Batcher 2.1 Is Released'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MeXL20QEZ8o/TMYODFCUlbI/AAAAAAAAABs/S_ymUeb1Pk8/s72-c/cfslz8a9.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-1705992986815710064</id><published>2010-10-06T12:01:00.000-07:00</published><updated>2011-05-22T16:23:35.677-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Creating And Upacking ZIP Archives Using Batch Scripts</title><summary type='text'>Sometimes it's necessary to create archives and extract files from them with help of batch files. For instance, it's useful when you writing scripts for automated backups. There is a number of different console archivers available on market, but still the most famous one is PKZIP (together with unpacker PKUNZIP). This archiver is especially useful for those who still use DOS for some reason.The </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/1705992986815710064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/10/creating-and-upacking-zip-archives.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1705992986815710064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1705992986815710064'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/10/creating-and-upacking-zip-archives.html' title='Creating And Upacking ZIP Archives Using Batch Scripts'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeXL20QEZ8o/TKzTJK9sXmI/AAAAAAAAABk/t6asReV6rsY/s72-c/0idmk0pq.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-53954857786743682</id><published>2010-09-18T15:47:00.000-07:00</published><updated>2010-09-18T18:13:21.563-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Checking for Existence of a File in Batch Scripts</title><summary type='text'>Sometimes it is necessary to check whether a file exists in a certain folder. Batch scripting provides a programmer with a really nice construction called 'If Exist'. It's pretty useful when you want to check for existence of a given file, for example, 'autoexec.bat'. To check for it, you should write the following code:If Exist autoexec.bat Echo Autoexec.bat exists!But if you try to check for </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/53954857786743682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/09/checking-for-existence-of-file-in-batch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/53954857786743682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/53954857786743682'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/09/checking-for-existence-of-file-in-batch.html' title='Checking for Existence of a File in Batch Scripts'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-4919807753420372751</id><published>2010-09-02T16:03:00.000-07:00</published><updated>2011-05-22T16:29:21.769-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='development'/><category scheme='http://www.blogger.com/atom/ns#' term='dr.batcher'/><title type='text'>Dr.Batcher 2.0.3 Is Out</title><summary type='text'>We're glad to introduce Dr.Batcher 2.0.3 - a new version of the award-winning batch files editor. In this version you will find:Search features in 'Add command' window (see screenshot)Support execution of a script without saving itSupport for sending bug reports from menu9 new examplesSmall bugfixes.You can find new version of Dr.Batcher here. Hope you'll enjoy it.</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/4919807753420372751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/09/drbatcher-203-is-out.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4919807753420372751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4919807753420372751'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/09/drbatcher-203-is-out.html' title='Dr.Batcher 2.0.3 Is Out'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MeXL20QEZ8o/TIAvCmaFhFI/AAAAAAAAABU/vAtGYkX61k0/s72-c/srchdlg.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-8586432810545670093</id><published>2010-08-22T03:10:00.000-07:00</published><updated>2011-05-22T16:28:56.165-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='roadmap'/><category scheme='http://www.blogger.com/atom/ns#' term='development'/><category scheme='http://www.blogger.com/atom/ns#' term='dr.batcher'/><title type='text'>Dr.Batcher's Roadmap</title><summary type='text'>Some people ask us 'When are you going to release  in Dr.Batcher?'. Of course, Dr.Batcher's development goes not very fast, but still we decided to continue it, and you'll see new features in our software soon.Version 2.1: support for compiling batch files to EXEs;Version 2.2: tab-based multi-document (MDI) interface;Version 3.0: debugger for batch scripts;Version 3.1: mixed (both Simple and </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/8586432810545670093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/08/drbatchers-roadmap.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8586432810545670093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8586432810545670093'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/08/drbatchers-roadmap.html' title='Dr.Batcher&apos;s Roadmap'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MeXL20QEZ8o/THEDMS9Uk_I/AAAAAAAAABE/phyvyihWMHc/s72-c/1.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-416521523624287236</id><published>2010-08-13T17:12:00.000-07:00</published><updated>2010-08-13T17:36:13.625-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='philosophy'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Are Batch Files Still Alive?</title><summary type='text'>There are lots of users and even system administrators who suppose batch files scripting to be dead. Why do they think so? The most common arguments are:there are lots of modern scripting techniques (PowerShell, WSH, etc.) that are simple in use;you can't make with help of batch files anything you want, or it's really difficult;you have to use GOTO - possibly, it's the worst reason not to use </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/416521523624287236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/08/are-batch-files-still-alive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/416521523624287236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/416521523624287236'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/08/are-batch-files-still-alive.html' title='Are Batch Files Still Alive?'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MeXL20QEZ8o/TGXk5Pq-YII/AAAAAAAAAA8/F56L1w62iyg/s72-c/MS-DOS_icon-2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-4968916406346196812</id><published>2010-08-02T10:05:00.000-07:00</published><updated>2010-08-13T16:38:44.001-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dr.batcher'/><category scheme='http://www.blogger.com/atom/ns#' term='updates'/><title type='text'>Dr.Batcher 2.0.2 is released</title><summary type='text'>After half a year of break Dr.Batcher 2.0.2 is released. In this version you will find:group "echo" and "@" modifiers;pop-up menu in Simple mode;new options;support for adding unknown commands in Simple mode;'Do not print this command in console during the execution' option in command editor;new 'Create Batch File' dialog;fixed parsing TAB characters; small bugfixes in UI.Here you can see how new</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/4968916406346196812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/08/drbatcher-202-is-released.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4968916406346196812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4968916406346196812'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/08/drbatcher-202-is-released.html' title='Dr.Batcher 2.0.2 is released'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MeXL20QEZ8o/TFcD9-Yj6NI/AAAAAAAAAAs/HZT8nz1G4Jk/s72-c/Batcher-New-Bat.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-1935897554704269479</id><published>2010-01-04T10:37:00.000-08:00</published><updated>2010-01-04T13:26:16.259-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Installing Fonts Using Batch Files</title><summary type='text'>Installing fonts is not really common task performing every day by thousands of people. Still  one day you can understand that you are to install fonts with help of batch scripting. Fortunately it's really won't take a lot of time to create a batch file to install several fonts. You should just copy them into Fonts directory and add some keys to the Registry. Here is the batch script you are to </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/1935897554704269479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2010/01/installing-fonts-using-batch-files.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1935897554704269479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1935897554704269479'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2010/01/installing-fonts-using-batch-files.html' title='Installing Fonts Using Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-339731627110172638</id><published>2009-12-23T16:39:00.000-08:00</published><updated>2010-08-13T16:42:05.632-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='discounts'/><category scheme='http://www.blogger.com/atom/ns#' term='dr.batcher'/><category scheme='http://www.blogger.com/atom/ns#' term='promotions'/><title type='text'>Buy Dr.Batcher with 40% discount on December 27</title><summary type='text'>Mental Works Computing Software and Bits du Jour offer you special 40% discount for Dr.Batcher on December 27, 2009. Only that day you will be able to buy Dr.Batcher only for $17.97 and receive all benefits of the registered version of Dr.Batcher including:* Unlimited time of use without nag-screens and other reminders* All functions of the registered version* Top-priority support* Free minor </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/339731627110172638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2009/12/buy-drbatcher-with-40-discount-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/339731627110172638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/339731627110172638'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2009/12/buy-drbatcher-with-40-discount-on.html' title='Buy Dr.Batcher with 40% discount on December 27'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-3111381404250366199</id><published>2009-12-13T07:40:00.000-08:00</published><updated>2010-08-13T16:56:33.917-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Creating Directories in Batch Files</title><summary type='text'>Creating new directories using batch files is a common task for system administrators and even home users. But it's not so simple to create a directory with the proper name sometimes. For example, let's consider that we want to create a directory named using the current date and current time. How will you create it through a batch script? Probably you will type something like this: md  %date%%</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/3111381404250366199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2009/12/creating-directories-in-batch-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3111381404250366199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/3111381404250366199'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2009/12/creating-directories-in-batch-files.html' title='Creating Directories in Batch Files'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-8142143389892924519</id><published>2009-12-07T13:43:00.000-08:00</published><updated>2010-08-13T17:03:32.101-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dr.batcher'/><category scheme='http://www.blogger.com/atom/ns#' term='updates'/><title type='text'>Dr.Batcher 2.0.1 Is Released</title><summary type='text'>We're glad to introduce Dr.Batcher 2.0.1, a new version of our award-winning batch files creation utility. Though this is just a minor update, it brings some really useful features and improvements for every user of Dr.Batcher. Here are some of them:Support for nested compound commandsSupport for extended 'IF' syntaxArabic translationBatch scripts parser improvedLots of small bugfixes.You can </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/8142143389892924519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2009/12/drbatcher-201-is-released.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8142143389892924519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/8142143389892924519'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2009/12/drbatcher-201-is-released.html' title='Dr.Batcher 2.0.1 Is Released'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-1073449841778775824</id><published>2009-12-03T07:22:00.000-08:00</published><updated>2010-08-13T17:05:01.576-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Comments in Batch Scripts</title><summary type='text'>Do you know how to comment a line in a batch script? Sure most of you know that it is possible with 'REM' at the start of certain line. But there are still some alternative ways. These ways are really popular among batch files creators but they can produce some unexpected errors while the execution of a batch file.The most popular commenting style for batch scripts looks like this::: This is a </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/1073449841778775824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2009/12/comments-in-batch-scripts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1073449841778775824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1073449841778775824'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2009/12/comments-in-batch-scripts.html' title='Comments in Batch Scripts'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-1607001468191489749</id><published>2009-11-23T13:50:00.000-08:00</published><updated>2010-08-13T17:08:48.199-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>'Else' in Batch Files Conditions</title><summary type='text'>The following version of Dr.Batcher, which is going to be released in a few days, will bring support for extended syntax of 'If' command. So we decided to give you some additional information on using 'Else' in batch file conditions.The command after 'Else' keyword will be executed if the condition appears to be false. You should know that the whole 'If' statement must be written in the same line</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/1607001468191489749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2009/11/else-in-batch-files-conditions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1607001468191489749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1607001468191489749'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2009/11/else-in-batch-files-conditions.html' title='&apos;Else&apos; in Batch Files Conditions'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-5105817594943975163</id><published>2009-11-14T10:01:00.000-08:00</published><updated>2011-05-22T16:28:22.403-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Cutting Characters in Batch Scripts</title><summary type='text'>It's necessary sometimes to cut some characters from the value of a variable in a batch script. For example, you need to rename a file having a too long name, or need to pass a certain string as a parameter for another batch file and need to cut last 5 characters. How can you cut these characters from a string? There is really simple solution provided by the command interpreter. For example, if </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/5105817594943975163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2009/11/cutting-characters-in-batch-scripts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/5105817594943975163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/5105817594943975163'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2009/11/cutting-characters-in-batch-scripts.html' title='Cutting Characters in Batch Scripts'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-4221282756455852214</id><published>2009-11-10T14:12:00.000-08:00</published><updated>2011-05-22T16:27:41.542-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Batch Scripts and Windows Registry</title><summary type='text'>One of the most common tasks you can meet during the batch scripts usage is modification of the Windows registry. It is likely that Microsoft still respects users of batch files because it provides them with several powerful tools allowing to add, delete or change registry keys and their values.The most useful command is called reg. As it is stated in official manual, this command 'adds, changes,</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/4221282756455852214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2009/11/batch-scripts-and-windows-registry.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4221282756455852214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4221282756455852214'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2009/11/batch-scripts-and-windows-registry.html' title='Batch Scripts and Windows Registry'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-7321751860807626503</id><published>2009-11-05T12:08:00.000-08:00</published><updated>2009-11-05T16:56:55.969-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='development'/><category scheme='http://www.blogger.com/atom/ns#' term='dr.batcher'/><category scheme='http://www.blogger.com/atom/ns#' term='updates'/><title type='text'>Dr.Batcher 2.0 Is Finally Out!</title><summary type='text'>I'm glad to introduce Dr.Batcher 2.0. This version of this batch files editor is designed to make them handier for all kinds of users. I won't speak much about it, just show you the list of features of the new version. New features are highlighted with bold text.               Simple mode: create BAT files with visual editors and wizardsProfessional mode: create BAT files with full-featured and </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/7321751860807626503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2009/11/drbatcher-20-is-finally-out.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7321751860807626503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/7321751860807626503'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2009/11/drbatcher-20-is-finally-out.html' title='Dr.Batcher 2.0 Is Finally Out!'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-261927209695256501</id><published>2009-10-28T16:46:00.000-07:00</published><updated>2009-10-28T17:13:22.486-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='errors handling'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Errorlevel: Checking for Errors while Executing a Batch Script</title><summary type='text'>Sometimes it's necessary to check for errors while executing a batch script. Command interpreter has built-in support for storing the return code of the command or program most recently executed. Note: error level is not a variable from the point of a batch script writer. You can't check it with the following code:If %Errorlevel%==1 goto ErrorYou should write instead this line:If Errorlevel 1 </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/261927209695256501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2009/10/errorlevel-checking-for-errors-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/261927209695256501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/261927209695256501'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2009/10/errorlevel-checking-for-errors-while.html' title='Errorlevel: Checking for Errors while Executing a Batch Script'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-1548902581406361935</id><published>2009-10-20T04:47:00.000-07:00</published><updated>2009-10-20T05:03:07.954-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Pauses and Delays in Batch Scripts</title><summary type='text'>In some cases you need to wait for a certain time after calling an application from your batch file. For example, it's useful when this application must finish its work. How can one include delay in his batch script? There are several different solutions.The first way is the simplest one. You can just include "pause" command in your script. This way has a really big drawback: this command </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/1548902581406361935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2009/10/pauses-and-delays-in-batch-scripts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1548902581406361935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/1548902581406361935'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2009/10/pauses-and-delays-in-batch-scripts.html' title='Pauses and Delays in Batch Scripts'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-145955426059542242</id><published>2009-10-16T13:51:00.000-07:00</published><updated>2011-05-22T16:26:17.595-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='techniques'/><category scheme='http://www.blogger.com/atom/ns#' term='batch files'/><title type='text'>Checking for Existence of Variables and Parameters</title><summary type='text'>Sometimes it's necessary to check in a batch file whether a certain variable is assigned. For example, it's useful when you need to check for some condition in "procedure" under certain label from main batch script. The usual way to check for existence looks like this:if defined %VARIABLE% echo Variable exists!But if you try to perform the same trick with parameters given to your batch script </summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/145955426059542242/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2009/10/checking-for-existence-of-variables-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/145955426059542242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/145955426059542242'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2009/10/checking-for-existence-of-variables-and.html' title='Checking for Existence of Variables and Parameters'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3949713545599329919.post-4663939694971960495</id><published>2009-10-12T11:10:00.000-07:00</published><updated>2011-05-22T16:25:42.187-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='parser'/><category scheme='http://www.blogger.com/atom/ns#' term='development'/><category scheme='http://www.blogger.com/atom/ns#' term='announcements'/><title type='text'>Working on Dr.Batcher 2.0 Beta</title><summary type='text'>The first post on this blog is going to be about working on the next release of Dr.Batcher. Ok, it's a good topic.The most interesting and valuable feature of Dr.Batcher 2.0 must be Simple mode of the script editor. What does this mean? Imagine that you speak to computer in English while writing a batch script. So you write "Delete file" instead of "Del", "Register library" instead of "regsvr32.</summary><link rel='replies' type='application/atom+xml' href='http://drbatcher.blogspot.com/feeds/4663939694971960495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drbatcher.blogspot.com/2009/10/working-on-drbatcher-20-beta.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4663939694971960495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3949713545599329919/posts/default/4663939694971960495'/><link rel='alternate' type='text/html' href='http://drbatcher.blogspot.com/2009/10/working-on-drbatcher-20-beta.html' title='Working on Dr.Batcher 2.0 Beta'/><author><name>mental-works</name><uri>http://www.blogger.com/profile/18061194677919249615</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeXL20QEZ8o/StNyy8jaZPI/AAAAAAAAAAc/-bj2p5KMd3s/s72-c/screeenshot2.png' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
