Thu 6-Mar-2008

TSCMDINF.TXT About TSCMD in General         (All rights reserved)
===================================

Ŀ
 Please do not distribute any part of this package separately. 
 If you come upon such a distribution or a reproduction on an  
 unauthorized WWW page or similar, please alert the author.    


For more information please see the Introduction section at the
beginning of 1CMDFAQ.TXT.

Timo Salmi (email: ts@uwasa.fi WWW: http://www.uwasa.fi/~ts/)
Professor of Accounting and Business Finance
Faculty of Business Studies
University of Vaasa
P.O. BOX 700, FI-65101 Vaasa, Finland

TSCMD47A.ZIP    Script file collection, T.Salmi
Filename        Comment
--------        --------------------------------
1CMDFAQ.TXT     NT/w2k/XP script tricks and tips  <-- This is the FAQ
CHOOSE.EXE      Ask questions in script files
CMD1DEMO.CMD    A CMD syntax selection demo
CMD2DEMO.CMD    A 2nd CMD syntax selection demo
COLORMAP.CMD    Display ECHOC.EXE color map
COMPFOLD.CMD    Compare contents of two folders
DATE2NUM.EXE    Date into a Julian date number
DATEINFO.CMD    Display date related information
DATET.CMD       Put date parts into environment
DELE.CMD        Recoverable command-line delete
ECHOC.EXE       Echo in colors
EDATE.CMD       Some alternative date formats
FILEAGE.CMD     Find out how old a file is
FILEINFO.CMD    CMD shell for FILEINFO.VBS
FILEINFO.VBS    FileInfo Visual Basic Script
FILE_ID.DIZ     Brief characterization of TSCMD
FINDTMP.CMD     Find and list all the .TMP files
FULLNAME.CMD    Display the full name of a file
MAILDATE.CMD    Build a message's "From" header
M_TSCMD.CMD     Makefile that built this package
NAMEDOWN.CMD    Covert a filename to lower case
NAMEUP.CMD      Covert a filename to upper case
NUM2DATE.EXE    A Julian date number into a date
QP2DOS.CMD      Encode quoted printable into DOS
RECENT.CMD      CMD shell for RECENT.VBS
RECENT.VBS      Search folders for recent files
RULER.BAT       Pinpoint screen columns and rows
SAMENAME.CMD    Find same name files in folders
TSCD.CMD        Current folder in long and short
TSCMDIDX.TXT    The questions index separately
TSCMDINF.TXT    Document (a readme) for TSCMD
TSCMDNWS.TXT    News about the TSCMD package
TSPROG.TXT      List of programs from Timo Salmi
WAKEUP.CMD      A reminder desktop alarm clock
WEXE2ZIP.CMD    Conv self-extracting exe to zip
WHEREIS.CMD     Find a file anywhere on a drive
WHOISME.CMD     Get IP and user information
XPMOVE.CMD      CMD shell for XPMOVE.VBS
XPMOVE.VBS      Move newer files between folders
----            ------             ------  -----
0040


The 1CMDFAQ.TXT "NT/2000/XP script tricks and tips" is a text file
in a mailbox format. Thus you can also read it indexed with any
suitable mail program. For example, I use PC-Pine for that purpose
on my PC.

The latest version of TSCMD is best available without the version
number as ftp://garbo.uwasa.fi/pc/link/tscmd.zip to avoid potential
broken links. The files with and without the version number are
identical.



CHOOSE.EXE (Ver. 1.1)  Ask questions in script files
=====================

Usage: CHOOSE [/c[:]keys] [/?|/h] [/n] [/s] [/t[:]c,nn] [/x] [text]
    the prompt keys                                    
                      Help                              
No default prompt (only user text)                       
                 apply case Sensitivity                   
  default key after timeout (must be among keys)           
                                Timeout in seconds          
                          Output @set choose_=returnCode     
                                           user's text prompt 

MS-DOS 6.0 finally included a CHOICE command for making user choices
in batches. CHOOSE simulates CHOICE for the earlier MS-DOS versions
reasonably accurately. The idea is that if you have obtained a batch
that uses CHOICE, but you don't have MS-DOS 6.0, you can still
utilize the batch. The syntax is naturally based on Microsoft's,
except for the addition of the help switch. The actual CHOOSE
program is a Turbo Pascal 7.01 program based the author's own,
earlier ASK program for making choices in batches. (Contrary to
CHOICE, CHOOSE handles also the /t:c,0 timeout correctly.)

This program has gained a new lease of life in the NT/2000/XP/...
series, since the CHOICE command no longer is a part of the command
line commands set. For more see the item #14 in 1CMDFAQ.TXT (Help!
My old batch files won't work since there is no choice).

A small demonstration
  @echo off & setlocal enableextensions
  choose /c:ynq /t:n,5 "Give your choice "
  if errorlevel 255 echo No such choice (255)
  if %errorlevel% EQU 3 echo The choice was a q (3)
  if %errorlevel% EQU 2 echo The choice was a n (2)
  if %errorlevel% EQU 1 echo The choice was a y (1)
  if %errorlevel% EQU 0 echo The choice was interrupted (0)
  endlocal & goto :EOF

Ŀ
 The output might look something like this 
   C:\_D\TEST>cmdfaq                       
   Give your choice [Y,N,Q]?Q              
   The choice was a q (3)                  


For more on testing for the errorlevel see IF /?



CMD1DEMO.CMD    A CMD syntax selection demo
============

A selection of CMD syntax tips. Self-documenting. Just run it.



COLORMAP.CMD  Display ECHOC.EXE color map
============

For more information and alternatives see item #51 "How can I echo
lines in different colors in NT scripts?"



COMPFOLD.CMD  Compare contents of two folders
============

Usage COMPFOLD "Folder1" "Folder2" [/s]
                 Include subfolders 

Trailing backslashes are not allowed at the end of the names

Ŀ
 The output might look something like this              
                                                        
 C:\_M>compfold c:\_d\test c:\_l\today                  
                                                        
 Ŀ 
  COMPFOLD.CMD Compare the contents of two folders    
  By Prof. Timo Salmi. Last modified Tue 3-Jan-2006   
  
                                                        
 Comparing                                              
  c:\_d\test                                            
  c:\_l\today                                           
                                                        
 31.12.2005  23:02             12346 CMDFAQ2.CMD        
 31.12.2005  23:02             12346 CMDFAQ2.CMD        
                                                        
 31.12.2005  22:57                88 CMDFAQ.CMD         
 31.12.2005  22:24               236 CMDFAQ.CMD         
 The file contents differ ......................        
                                                        
 06.12.2005  09:38                88 KOE  3.CMD         
 File not found in c:\_l\today                          
                                                        
 03.11.2005  23:43             12346 CMDFAQ2.CMD        
 File not found in c:\_l\today                          
                                                        
 24.10.2005  18:58               431 TEST.VBS           
 File not found in c:\_l\today                          
 -- More  --                                            




DATE2NUM.EXE (Ver 1.0a)  Date into a Julian date number
=======================

Usage: DATE2NUM DD MM YYYY [/set] [/?]
               include @set       
                              Help 

Calculates the Chronological Julian Date Number for a local
Gregorian date.
If no date is given, uses today's date.

For examples see e.g. items #6 (How does one get yesterday's date?),
#13 (How do I get the current day of the week?) and #31 (How many
days ago was 31.12.2002? What date was it 100 days ago?)

Note: No extensive validity checking of the date entered is
performed by the program. Save for checking for trivial errors
entering a valid date is up to the user.

Ŀ
 The output might look something like this 
   C:\_M>date /t                           
   31.12.2005                              
                                           
   C:\_M>date2num                          
   2453736                                 




DATEINFO.CMD  Display date related information
============

Usage: dateinfo DD MM YYYY
    or dateinfo DD.MM.YYYY
    or dateinfo DaysBackwards

Ŀ
 The output might look something like this                   
                                                             
   C:\_M>dateinfo 2 6 2006                                   
                                                             
   +-------------------------------------------------------+ 
   | DATEINFO.CMD to display some date related information | 
   | By Prof. Timo Salmi, Last modified Sat 21-Oct-2006    | 
   +-------------------------------------------------------+ 
                                                             
   Today: 21.10.2006                                         
   Julian day number : 2454030                               
   Weekday           : Sat                                   
   Day ordinal number: 294                                   
   ISO Week number   : 42                                    
   Days in month     : 31                                    
                                                             
   Date : 2.6.2006                                           
   Julian day number : 2453889                               
   Weekday           : Fri                                   
   Day ordinal number: 153                                   
   ISO Week number   : 22                                    
   Is valid date     : True                                  
   Days in month     : 30                                    
                                                             
   Difference in days: 141                                   




DATET.CMD  Put date parts into environment
=========

Usage: DATET [/C] [/Q]
                    Quiet
                Clear the Datet environment variables

or DATE /?

The questions "How do I rename my file with the date?" or "How do I
get the elements of the date into environment variables?" are asked
time and again e.g. on the Usenet news. Run this script before yours
to have all the needed elements already available.

The day and the month will include a leading zero for one digit results.
If you need to drop the leading zero see 1CMDFAQ.TXT for how it is done.

The script builds a temporary Visual Basic Script to get locale
independent date information. The problem with the ordinary DATE /T
is that its output depends on the localization configuration.

Ŀ
 The output might look something like this                               
   C:\_M>datet                                                           
   Ŀ 
    DATET Put the current date and time elements into the environment  
    By Prof. Timo Salmi, Last modified Sat 10-Feb-2007                 
    
                                                                         
   DatetDD=10                                                            
   DatetMM=02                                                            
   DatetYY=07                                                            
   DatetYYYY=2007                                                        
   DatetWkD=Sat                                                          
   DatetMon=Feb                                                          
   DatetHH=18                                                            
   DatetMI=35                                                            
   DatetSS=46                                                            



DELE.CMD  Recoverable command-line delete
========

Usage: DELE [FileNameToBeMovedToTheTargetTrashFolder]

If one deletes files using the DEL command-line command, one cannot
retrieve them. DELE.CMD is an intermediate step, emulating the
Recycle Bin to an extent. Instead of actually deleting the selected
files DELE moves them to a trash folder.

Ŀ
 The output might look something like this                 
   C:\_M>dele dirhist.txt                                  
   Ŀ 
    Recoverable command-line DELEte by Prof. Timo Salmi  
    Last modified Fri 13-Jan-2006                        
    
                                                           
   Move "C:\_M\dirhist.txt" to "C:\_L\TEMP"                
   Are you sure [N/y]?y                                    
    Volume in drive C is XPAD_C                            
    Volume Serial Number is B821-5C43                      
                                                           
    Directory of C:\_L\TEMP                                
                                                           
   30.12.2005  23:05             2 759 dirhist.txt         
   31.12.2005  09:12    <DIR>          ..                  
   31.12.2005  09:12    <DIR>          .                   
                  1 File(s)          2 759 bytes           
                  2 Dir(s)  27 711 438 848 bytes free      




ECHOC.EXE (Ver 1.1)  Echo in colors
===================

Usage: ECHOC bgColor fgColor The text
             [0..15] [0..15]

Example of usage in an NT CMD.EXE script:
  @echo off & setlocal enableextensions
  echoc 0 15 Hello world (On black bright white)
  echo.
  echoc 4 14 Hello again (On red bright yellow)
  echo.
  echoc 0 13 Done! (On black bright magenta)
  echo.
  endlocal & goto :EOF

Limitation 1: Echoed words will be separated by exactly one space.
But you can use just "ECHOC bg fg" or ASCII 255 for multiple spaces.
And example:
  echoc 4 14 Hello
  echoc 4 14
  echoc 4 14
  echoc 4 14 World
will produce
  Hello  World

Limitation 2: ECHOC.EXE is a Turbo Pascal program. It utilizes the
Borland TP MS-DOS compiler's Crt unit to produce the colors. The
unit uses direct screen writes which has the unavoidable side-effect
of clearing the command window's screen buffer. In other words, what
may have been in your open command window's scroll back buffer is
initialized.

See item #51 (How can I echo lines in different colors in NT
scripts?) and try COLORMAP.CMD for more examples.



EDATE.CMD  Some alternative date formats
=========

Usage: EDATE
   or  EDATE [AddDays]
   or  EDATE [ /C1  /C2  /C3  /C4 ]

 /C1 = DD.MMM.YYYY HH:mm:ss
 /C2 = Wkd DD-MMM-YYYY HH:mm
 /C3 = YYMMDD
 /C4 = YYYYMMDD

The first will use gawk, the others a Visual Basic Script.
The output selection will differ between the alternatives.
The third alternative will also send the output to the clipboard.

The first alternative will give the correct information only
if the following tallies:
13.01.2008
DD.MM.YYYY
Else customize the script to correspond to your locale's date format.

Ŀ
 Outputs e.g.                                           
                                                        
 C:\>edate                                              
 +----------------------------------------------------+ 
 | EDATE.CMD to display some alternative date formats | 
 | By Prof. Timo Salmi, Last modified Sat 9-Sep-2006  | 
 +----------------------------------------------------+ 
                                                        
 661021                                                 
 061021                                                 
 2006.10.21                                             
                                                        
 Sat Oct 21 06:19:10 2006                               
 Sat Oct 21 06:19:10 2006                               
 Sat, 21 Oct 2006 06:19:10 +0200 (EET)                  
 Sat, 21 Oct 2006 06:19:10 +0300 (EEST)                 
                                                        
 Sat Oct 21 06:19:10 2006 Week 42 Day 294               
 Saturday 21 October 2006 06:19:10                      
 Sat 21-Oct-2006 06:19                                  
 Sat 21-Oct-2006 06:19:10                               
                                                        
 La 21.10.2006  6:19:10                                 
 lauantai 21. lokakuuta 2006  6:19:10                   
 lauantaina 21. lokakuuta 2006  6:19:10                 


Ŀ
 C:\>edate -1                                            
 +----------------------------------------------------+  
 | EDATE.CMD to display some alternative date formats |  
 | By Prof. Timo Salmi, Last modified Sun 23-Dec-2007 |  
 +----------------------------------------------------+  
                                                         
 Today from %date%: 21.10.2006                           
 Today + (-1) days:                                      
 Fri Oct 20 06:22:47 2006                                
 Fri 20.10.2006                                          
 Fri 20-Oct-2006                                         
 Fr 20.10.2006                                           
 2006.10.20 20061020 20061020140956                      
 661020 E61020                                           
 ,,20.10.2006 14:09:56,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 


Useful for example for copying the date from the output to the
clipboard for subsequent pasting.



FILEAGE.CMD  Find out how old a file is
===========

Usage: FILEAGE [FileName]
Ŀ
 The output might look something like this                
   C:\_M>fileage C:\_F\CMD\FILEAGE.CMD                    
   +----------------------------------------------------+ 
   | FILEAGE.CMD script to find out how old a file is   | 
   | By Prof. Timo Salmi, Last modified Sat 17-Jun-2006 | 
   +----------------------------------------------------+ 
                                                          
   17.06.2006 21:08 2221 C:\_F\CMD\FILEAGE.CMD            
   The file is 126 days old                               




FILEINFO.CMD  CMD shell for FILEINFO.VBS
============

Usage: FILEINFO.CMD FileName
No wildcards
Long file names should be enclosed in parentheses

Ŀ
 The output might look something like this            
   C:\_D\BAS>fileinfo cmdfaq2.cmd                     
   +--------------------------------+                 
   | FILEINFO.VBS File Information  |                 
   | By Prof. Timo Salmi (c) 2004   |                 
   | Last modified Thu 26-Feb-2004  |                 
   +--------------------------------+                 
                                                      
   C:\_D\BAS\CMDFAQ2.CMD                              
   Size:          12346                               
   Attributes:                                        
   Created:       23.11.2003 20:59:31    769 days ago 
   Last modified: 03.11.2005 23:43:40     58 days ago 
   Last accessed: 22.12.2005 21:55:21      9 days ago 




FILEINFO.VBS  FileInfo Visual Basic Script
============

Gives information about a file. E.g.

  F:\INF\TSCMD.DIZ
  Size:          152
  Attributes:
  Created:       14.11.2003 04:27:11
  Last modified: 16.11.2003 09:28:59
  Last accessed: 26.02.2004 07:16:06



FULLNAME.CMD  Display the full name of a file
============

An important warning: Do not associate with "File Folder", "Folder"
or "Drive" types! If you do and do not know how exactly to handle it,
clicking a folder will invoke "search" instead of the folder making
the Windows Explorer and thus your system practically non-usable.

For more information on that warning see e.g.
 http://support.microsoft.com/default.aspx?scid=kb;en-us;Q321186
 http://www.tomshardware.co.uk/forum/85531-35-double-click-folder-search-opens
 http://www.kellys-korner-xp.com/xp_tweaks.htm
 http://www.pcworld.com/article/id,126116-page,1-c,maintenancemanagement/article.html

The intended main usage of this script is the following. In
 My Computer
  Tools
   File Types (choose one from the list)
    Advanced
     New
one can associate file types with additional programs and scripts.
Associate the current script and it will open a temporary dosbox to
display the path to the target file from your desktop.
Some customization of the pause logic at the end of the script may
be required.

Ŀ
 The output from the command-line might look something like this 
   C:\_D\BAS>fullname cmdfaq2.cmd                                
                                                                 
   Ŀ                           
    Display the full name of a file                            
    By Prof. Timo Salmi                                        
    Last modified Sat 3-Sep-2005                               
                              
                                                                 
   "C:\_D\BAS\CMDFAQ2.CMD"                                       




FINDTMP.CMD  Find and list all the .TMP files
===========

Usage: FINDTMP [/B/D/Z]
                      sort by siZe
                    A list sorted by Date/time
                  Just a bare list ready to perform your action
   or
       FINDTMP /?

Lists all the *.TMP files sorted by the files' date/time stamps.
A file date/timo stamp default order DD.MM.YYYY HH:MI is required.
If your locale's default differs, you'll have to customize.

Consider this a demonstration you can build on to do your own bidding.

Ŀ
 The output from the command-line might look something like this 
   C:\_M>findtmp /b                                              
   Ŀ        
    FINDTMP.CMD Find and list all the *.TMP files              
    By Prof. Timo Salmi, Last modified Wed 14-Feb-2007         
           
                                                                 
    Directory of C:\_M                                           
   14.02.2007  08:56            11 609 myaction.cmd              
   248 action lines                                              
                                                                 
   Think twice before you run the resultant CLI file.            
   You do it at your own discretion and risk.                    




MAILDATE.CMD  Build a message's topmost "From" header
============

This script forms the beginning "From" line of an email message
header. It is based on the "From: " and the "Date: " header fields.
The information can be needed since sometimes the beginning "From"
header is broken or missing altogether. The script is not perfect,
but it should be able to handle the most common situations. The
SED.EXE third party program is needed to use this script.

This script forms the beginning "From" line of an email message
header. It is based on the "From: " and the "Date: " header field
The information can be needed since sometimes the beginning "From
header is broken or missing altogether. The script is not perfect
but it should be able to handle the most common situations.
The SED.EXE third party program is needed to use this script.

Usage: MAILDATE [EmailOrNewsFileName] [/SUBJ]
       The primary default FileName is C:\_M\mail.txt
       The secondary default is C:\_M\mail.eml

       The /SUBJ switch includes the subject with the date added.
       Note: Subjects with the poison characters may cause errors

The script can distinguish between the two major "From: " formats
 Timo Salmi <ts@uwasa.fi>
 ts@uwasa.fi (Timo Salmi)

Ŀ
 The output might look something like this           
   C:\_M>maildate                                    
   Ŀ 
    MAILDATE.CMD Build a message's "From" header   
    By Prof. Timo Salmi, http://www.uwasa.fi/~ts/  
    Last modified Sat 4-Nov-2006                   
    
                                                     
   From: ts@uwasa.fi (Timo Salmi)                    
   Date: Sat, 31 Dec 2005 06:52:38 +0000 (UTC)       
                                                     
   From ts@uwasa.fi  Sat Dec 31 06:52:38 2005        




MAKEPASS.CMD  Make a randomized password
============

Usage: MAKEPASS [/Choice/?]

/1 only lower-case letters
/2 only letters
/3 require at least one number
/4 require at least one number and own special character
None: No preference

Ŀ
 The output might look something like this              
 C:\_M>makepass                                         
                                                        
 Ŀ 
  MAKEPASS.CMD Make a randomized password             
  By Prof. Timo Salmi, Last modified Sat 16-Feb-2008  
  
                                                        
 EDO54J3Mhu                                             




M_TSCMD.CMD  A makefile to build this package
===========

Included for a code demonstration, only. Only needed by the author.



NAMEDOWN.CMD  Covert a filename to lower case
============

Usage: NAMEDOWN [FileName.Ext]
No wildcards
For wildcards use e.g.
for %f in (*.JPG) do call namedown %f
Long file names should be enclosed in parentheses

Ŀ
 The output might look something like this            
   C:\_M>for %f in (*.cmd) do namedown %f             
                                                      
   C:\_M>namedown CMDFAQ.CMD                          
   Ŀ   
    NAMEDOWN.CMD Covert a filename to lower case    
    By Prof. Timo Salmi                             
    Last modified Thu 1-Sep-2005                    
      
                                                      
   Convert "C:\_M\CMDFAQ.CMD" to "cmdfaq.cmd"         
   are you sure [n/Y]?                                
                                                      
    Volume in drive C is XPAD_C                       
    Volume Serial Number is B821-5C43                 
                                                      
    Directory of C:\_M                                
                                                      
   30.12.2005  22:56             1 557 cmdfaq.cmd     
                  1 File(s)          1 557 bytes      
                  0 Dir(s)  27 711 373 312 bytes free 
                                                      
   C:\_M>namedown CMDFAQ2.CMD                         
   Ŀ   
    NAMEDOWN.CMD Covert a filename to lower case    
    By Prof. Timo Salmi                             
    Last modified Thu 1-Sep-2005                    
      
                                                      
   Convert "C:\_M\CMDFAQ2.CMD" to "cmdfaq2.cmd"       
   are you sure [n/Y]?                                
                                                      
    Volume in drive C is XPAD_C                       
    Volume Serial Number is B821-5C43                 
                                                      
    Directory of C:\_M                                
                                                      
   03.11.2005  23:43            12 346 cmdfaq2.cmd    
                  1 File(s)         12 346 bytes      
                  0 Dir(s)  27 711 373 312 bytes free 




NAMEUP.CMD  Covert a filename to upper case
==========

Opposite of the NAMEDOWN.CMD
Usage: NAMEUP [FileName.Ext]
No wildcards
For wildcards use e.g.
for %f in (*.txt) do call nameup %f

Ŀ
 The output might look something like this            
   C:\_M>nameup cmdfaq.cmd                            
   Ŀ     
    NAMEUP.CMD Covert a filename to upper case      
    By Prof. Timo Salmi                             
    Last modified Thu 1-Sep-2005                    
        
                                                      
   Convert "C:\_M\cmdfaq.cmd" to "CMDFAQ.CMD"         
   are you sure [n/Y]?                                
                                                      
    Volume in drive C is XPAD_C                       
    Volume Serial Number is B821-5C43                 
                                                      
    Directory of C:\_M                                
                                                      
   30.12.2005  22:56             1 557 CMDFAQ.CMD     
                  1 File(s)          1 557 bytes      
                  0 Dir(s)  27 711 373 312 bytes free 




NUM2DATE.EXE (Ver 1.0a)  A Julian date number into a date
=======================

The "inverse" of DATE2NUM.EXE

Usage: NUM2DATE JulianDateNumber [/set] [/?]
                      include @set      
                                    Help 

Returns the local Gregorian date for a Chronological Julian Date
Number.

"Chronological Julian Date Number is a daycount starting at Julian
Calendar BC 4713-01-01 00:00:00 local time = CJD 0.0." (From John
Stockton)

With /set returns:
  @set dd_=day
  @set ddpad_=day zero-padded
  @set mm_=month
  @set mmpad_=month zero-padded
  @set yyyy_=year with four digits
else returns (zero-padded)
  YYYYMMDD

With no parameters, returns this help. With only /set given
returns the current date variables.

Ŀ
 The output might look something like this 
   C:\_M>num2date 2453736                  
   20051231                                




QP2DOS.CMD  Encode quoted printable into DOS
==========

Requires SED.EXE
Usage: QP2DOS ["InputFileName"] ["OutputFileName"]



RECENT.CMD  CMD shell for RECENT.VBS
==========

Before using you will wish to customize the folder paths (after the
label "Call the actual VBS script" in the RECENT.CMD to correspond
to yours.

Be patient. The method is not fast.

Usage:
  RECENT [DaysBack] [FromTime] [Exact]

  Examples:
    Find file made today
      RECENT

    Find files made after 15:00:00 yesterday and after 15:00:00 today
      RECENT 1 150000

    Find files made two days ago after 07:50:00, but not yesterday
    or today
      RECENT 2 075000 Exact

Also see the next program item.

Ŀ
 The output might look something like this                      
   C:\_M>recent 0 063000                                        
   20051231 071508     342383 C:\_G\WWW\~TS\CGI-BIN\GUESTBK.DAT 
   20051231 090115      14758 C:\_F\INF\TSCMDINF.TXT            




RECENT.VBS  Search folders for recent files
==========

Examples of usage:

  cscript //nologo recent.vbs C:\_F 0 150000
will find files made or modified today after 15:00:00 in the C:\_F
folder and all its subfolders.

  cscript //nologo recent.vbs "C:\Program Files" 1 000000
will find files made yesterday AND today. Note the need of the
quotation marks, since there is a space in the start folder name.

  cscript //nologo recent.vbs C:\_F 1 000000 Exact
will find files made yesterday only (since midnight)

Hint
  cscript //nologo recent.vbs C:\_F 1 150000
will find files made yesterday AND today after 15:00:00. That goes
for both(!) the days. If you wish to find files made after yesterday
15:00:00 inclusive this morning then divide the search into two parts:
  cscript //nologo recent.vbs C:\_F 1 150000 Exact
  cscript //nologo recent.vbs C:\_F 0 000000



RULER.BAT Pinpoint screen columns and rows
=========

Usage: RULER [/C]
                Columns, i.e. horizontally only

This simple batch helps to pinpoint the rows and the columns of the
screen by displaying a ruler in colors. Requires ECHOC.EXE to
display customized colors.

Also see: Ruler by Phil Robyn in
 ftp://garbo.uwasa.fi/pc/pd2/tspost28.zip
 Information email + postings, from 19-Sep-00 to ...



SAMENAME.CMD  Find same name files in folders
============

Also scans the subfolders, if any
Usage samename "Folder1" "Folder2"
For example:
 SAMENAME C:\_D\BAS D:
 Note: no trailing backslash for the root

For a much more versatile comparison script but with limited
subfolder traversing see COMPFOLD.CMD further up in this information
file.

Ŀ
 The output might look something like this                    
   C:\_M>samename C:\_L\TODAY N:                              
   Ŀ 
    SAMENAME.CMD Scan folders for files with the same name  
    By Prof. Timo Salmi. Last modified Sat 31-Dec-2005      
    
   PHONE.HTM 30.12.2005 12:15 98789 C:\_L\TODAY\              
   PHONE.HTM 30.12.2005 12:15 98789 N:\                       
   PLANO65.DOC 30.12.2005 16:27 347136 C:\_L\TODAY\           
   PLANO65.DOC 30.12.2005 16:27 347136 N:\                    
   PLANO65.XLS 30.12.2005 16:54 176640 C:\_L\TODAY\ (differs) 
   PLANO65.XLS 30.12.2005 16:55 176640 N:\                    
   PLANO66.DOC 30.12.2005 16:31 322048 C:\_L\TODAY\           
   PLANO66.DOC 30.12.2005 16:31 322048 N:\                    




TSCD.CMD Show current or given folder name both in short and long formats
========

Usage: TSCD [/B] ["FolderName"]
               Bare, no caption
   or
       TSCD [?/?] for this help

Utilizes ECHOC.EXE to print in colors, if available at path.

Assumes the current folder name if none is given.

Ŀ
 The output might look something like this                        
   C:\_M>tscd "%APPDATA%"                                         
                                                                  
   Ŀ 
    TSCD.CMD Show a folder name both in short and long formats  
    By prof. Timo Salmi, Last modified Thu 8-Feb-2007           
    
                                                                  
   C:\DOCUME~1\ts\APPLIC~1                                        
   C:\Documents and Settings\ts\Application Data                  




WAKEUP.CMD  A trivial reminder desktop alarm clock
==========

Usage: c:\_F\XTOOLS\WAKEUP.CMD [HH:MM] ["Message in quotes"]
Only cursory syntax error checking
c:\_F\XTOOLS\WAKEUP.CMD utilizes the AT command scheduling
For information on AT apply AT /?

Ŀ
 The immediate output might look something like this                               
   C:\_M>wakeup 9:00 "Time for work"                                               
   Ŀ                           
    WAKEUP.CMD a trivial reminder desktop alarm clock                            
    By Prof. Timo Salmi                                                          
    Last modified Tue 27-Jun-2006                                                
                              
   Added a new job with job ID = 1                                                 
   Status ID   Day                     Time          Command Line                  
   ------------------------------------------------------------------------------- 
           1   Today                   09:00         C:\_M\TEMP\wakeup.5008.vbs    




WHEREIS.CMD  Find a file anywhere on a drive
===========

Usage: WHEREIS [FileMask] [/a] [/m] [/s]

 /a show All files, including hidden
 /m pipe to More
 /s Sort by date

E.g. WHEREIS *.XLS /s /m

Alternative usage: WHEREIS /?
for this brief help.

Ŀ
 The output might look something like this                                  
   C:\_M>whereis samename.*                                                 
   Ŀ                                
    WHEREIS.CMD, A script to locate files                                 
    By Prof. Timo Salmi Wed 29-Sep-2004                                   
                                   
   2004.10.08 16:17 ---------         2134 C:\_F\BAT\SAMENAME.BAT           
   2005.12.31 00:08 --a------         1943 C:\_F\XTOOLS\SAMENAME.CMD        
   2004.10.08 16:16 ---------         3396 C:\_L\TIMO\EXTENS02\samename.rpt 
   2005.12.31 00:08 --a------         1943 C:\_L\TODAY\SAMENAME.CMD         




WHOISME.CMD Get IP and user information
===========



XPMOVE.CMD  CMD shell for XPMOVE.VBS
==========

WARNING: Moving files can always involve some dangers.
         All the risks are carried by the user alone.
         DON'T USE UNLESS YOU KNOW WHAT YOU ARE DOING

Moves files from FromFolder to ToFolder if an older file with the
same name is found in the ToFolder

Before usage, customize the paths in the cscript call as befits you.



XPMOVE.VBS  Move newer files between folders
==========

Warning: Moving files can always involve some dangers.
         All the risks are carried by the user alone.
         DON'T USE UNLESS YOU KNOW WHAT YOU ARE DOING

Usage: cscript //nologo xpmove.vbs FromFolder ToFolder [/sub:no]

If /sub:no is not present, also ToFolder subfolders are traversed

Alternatively use the XPMOVE.CMD shell

Skips system and hidden files! Irrespective of whether the attribute
is at source or destination.

Skips (access denied) if the target file is readonly. However, if
the source file is readonly, and the target file is not, the file
will be moved. The moved file retains its readonly attribute.
