Main Page | Report Page


  Computers Forum Index » Computer Archives - MS Windows » Useful NT/w2k/XP script tricks and tips

Author Message
Timo Salmi
Posted: Fri Nov 28, 2003 10:19 pm
Fri 28-Nov-2003: For some time now I have have considered to
familiarize myself better with the NT/2000/XP scripting by starting
a new FAQ collection. So here we go:

20353 Nov 28 2003 Useful NT/w2k/XP script tricks and tips, T.Salmi, linked

or, alternatively, with a version number as

20353 Nov 28 2003 Useful NT/w2k/XP script tricks and tips, T.Salmi

However, it is recommended that you link to the file without the
version number.

The main contents 1CMDFAQ.TXT is a text file in a mailbox format.
Thus you can also read it indexed with any suitable mail program.

This is the first version of TSCMD. One purpose of the early
release is to set up the framework for this FAQ. The following items
were included to start with:

1} How get today's date elements into environment variables?
2} On Windows XP how do you stop the script files from closing?
3} How can I customize the Command Prompt Window with script commands?
4} How can I test is it on MSDOS/Win3..9x/Me or NT/2000/XP?
5} How do I get a fully qualified path name of my script?
6} How does one get yesterday's date?
7} How can I test if two files agree in size and datetime stamp?
8} How do I find all the files made at of after YYYYMMDD HHMM?
9} How can I suppress script error messages altogether?
10} How can I change the environment variable values within a FOR loop?
11} How do I retain my original code page in these scripts?
12} How can I rename all my .JPG files sequentially in a directory?
13} How do I get the current day of the week?
14} Help! My old batch files won't work since there is no choice.
15} Is it possible to echo without linefeed like the Unix echo -n?
16} How can I get the time without having to press enter?
17} How can I avoid the potential "ECHO is off." in echoing %myvar%
18} How does one build re-usable script function modules?
19} How can one build a delay / sleep / wait procedure for a script?
20} Is is possible to right-justify numbers or words in a script?

All the best, Timo

Prof. Timo Salmi ftp & archives
Department of Accounting and Business Finance ; University of Vaasa <> ; FIN-65101, Finland
Timo's FAQ materials at
Page 1 of 1    
All times are GMT
The time now is Wed Sep 03, 2014 2:14 am