Introduction
The name WinDOS covers a series of small programs that can be run from the Command prompt or from within batch files.
These Windows DOS tools run on each Win32 system, except Windows 3.x with the Win32s subsystem installed. They are tested on Windows 95, 98, NT4.
For question about these programs, please contact us at windos AT janssensoftware.com
All these programs are freeware.
Delay (download)
With Delay, execution is paused for a specified time. This can be usefull in batch files, where sequential commands are not allowed to be executed immediately, but need to wait for a couple of seconds.
DELAY 1.0 - (c) 2004, Janssen Software
Usage:
Delay N
Where:
N = number of seconds to wait
Example:
Delay 5
ExecWait (download)
Launches a program (with optional parameters), and waits until it's finished. After that, ExecWait returns an error code in ERRORLEVEL (0 if no error was encountered).
EXECWAIT 1.0 - (c) 2004, Janssen Software
Usage:
ExecWait APP [PARAMS]
Where:
APP = (full path to) application to execute
PARAMS = Optional parameters
Example:
ExecWait C:\Windows\Notepad.exe C:\Config.sys
SetVar (download)
With SetVar, one can store the current date or time in a DOS variable. Furthermore, the format of storage can be set.
SetVar 1.0 - (c) 2004, Janssen Software
Usage:
SetVar VAR TYPE FORMAT
Where:
VAR = name of the variable
TYPE = type of value to assign to the variable
options: date, time
FORMAT = format of the value to assign to the variable
options: DDMMYY, MM-DD-YYYY, hh:mm:ss etc.
Example:
SetVar monthday date MMDD
Use Shortcut to automatically create a Shortcut to a file or folder, for example from within a batch file.
SHORTCUT 1.0 - (c) 2004, Janssen Software
Usage:
Shortcut -m:Mode -l:LinkFileName -p:Path [-a:Arguments] [-d:Description] [-h:HotKey] [-il:IconLocation [-ii:IconIndex]] [-r:RelativePath] [-s:ShowCommand] [-s:ShowCommand] [-w:WorkingDir] [-?]
Where:
-m:Mode = action mode, where Mode is: Create, Modify or Delete
-l:LinkFileName = path and name of the shortcut
-p:Path = path to a file, folder or application
-a:Arguments = commandline parameters
-d:Description = description of the shortcut
-fl:LinkFileName = find by linkfilename pattern
-fp:Path = find by path pattern
-h:HotKey = hotkey
-il:IconLocation = path and filename of the file containing the icon
-ii:IconIndex = index of the icon (0,1,2,...)
-r:RelativePath = ????
-s:ShowCommand = window mode, where ShowCommand is: Max, Min or Normal
-w:WorkingDir = working directory
-? = this help
Note:
LinkFileName, Path, IconLocation, RelativePath and WorkingDir can start with the following variables: %WindowsDrive%, %WindowsDir%, %WindowsSystemDir%, %Desktop%, %Favorites%, %MyDocuments%, %MyPictures%, %StartMenu%, %StartMenuPrograms%, %StartMenuStartup% or %AppData%
Example:
ShortCut -m:Create -l:%Desktop%notepad.lnk -p:%WindowsDir%Notepad.exe