Windows Quick Guide

 
 
This guide contains useful Windows commands.

rss feed






Batch programming.




Information
In the table below some batch programs can be found to explain some programming statements.

batch Description
display.bat Display message (Explain: echo, goto, if, set)
readfile.bat
display.bat
data.txt
Read and processes a data file (Explain: for, call)
menu.bat Displays a menu (Explain: echo, set, color, if, goto, cls)
start_unsign.bat
unsign_jar.bat
signed_jars.txt
The two batch scripts unsigns all *.jar files listed in file signed_jars.txt (Explain: for, call, rmdir, mkdir, copy, move, del)

Get information about the purpose of these dos batch scripts.
date_time.bat Use current date and time as part of log file name (Explain: for, usebackq, tokens, delims)
backup_drupal_database.bat Makes a backup of the drupal database. The backup file contains the current date and time as part of its file name: drupal47_yyyymmdd_hhmm.sql

Get information about the purpose of this dos batch script.
backup_drupal_database_and_
templates_with_winzip.bat
Makes a backup of the drupal database and drupal templates using WinZip Pro. The backup file contains the current date and time as part of its file name: yyyymmdd_hhmm.zip

Get information about the purpose of this dos batch script.
backup_drupal_database_and_
templates_with_cygwin.bat
Makes a backup of the drupal database and drupal templates using Cygwin. The backup file contains the current date and time as part of its file name: yyyymmdd_hhmm.tgz

Get information about the purpose of this dos batch script.
showlog.bat This batch file opens a dos window and goes to the directory where the log file test.log is located. The Cygwin tail command is then executed to display the last 100 lines of the log file continuously.
killprocess.bat
tasks_start.bat
tasks_end.bat
The batch file (killprocess.bat) ends the McCAfee virussanner proces as displayed in the Windows Task Manager.

The batch file (tasks_start.bat) creates a schedules task whereby the killprocess.bat file is executed every 5 minutes.

The batch file (tasks_end.bat) deletes the schedules task MCAFEE.

(Explain: schtasks, taskkill)