24x7 Script Archive
Free command line utilities
||If you run applications on a multiprocessor machine, you can use this
utility to bind a particular application to a particular CPU or subset of available CPUs. By binding different
applications to different CPUs you can greatly optimize your application performance.
||Using this utility you can run different applications on different
virtual desktops. For example if you run 24x7 Scheduler in Windows NT service mode
(Windows NT/2000/XP/2003/Vista runs all services on the invisible services desktop), you
can use BindDesktop to run a process on a visible user Desktop allowing users to see and
interact with the process. By default all child processes always run on the desktop where
the parent process is started. BindDesktop is a solution for this issue.
||Change process priority of a running process. This utility can be used on
Windows NT/2000/XP/2003/Vista systems.
||DOS copy command, Windows Explorer file
copy operations, JAL's FileCopy statement, VBScript's CopyFile
method, Windows API FileCopy functions; all of them have the same common
deficiency - they lock files during file copy operations. As a result, you can experience
various file sharing problems if you schedule multiple jobs that access the same file. The
FileCopy utility allows non-locking file copying as well as partial and incremental file
||Use LineCount to count lines in your source code files or
use it to verify integrity of your data files.
||This utility provides for Windows what head
and tail utilities provide for Unix systems. LineCopy
performs line-based copying of text files allowing one to copy and extract portions of a
text file or cut a text file into pieces. Files are copied in shared read-write mode so
that they can be accessible for read and update by other programs during LineCopy
||This multi-file processor utility extends functionality of the DOS dir
command. Two main extensions:
1. File date and age filters (for example, you can find files that are older than N number
2. Automatic processing of each found file by a program of your choice (for example, to
delete all log files from a particular directory that are more that 30 days old, you can
run FileDir /C cmd /P "/c del " /A 30 /N *.log
||Windows keeps track of the date and time every file was created, and of
the date and time it was last modified or accessed, but it does not provide ways for
changing file dates and times manually without modifying the actual files. FileTouch is a
command line utility that allows you to change them. It is similar in functionality to the
well-known UNIX touch command.
||FileTruncate can delete contents of existing files without deleting the
actual files. It can even truncate files being opened in other applications.
||RunOne provides methods for limiting an application to a single instance.
Just use RunOne my_application.exe my parameters to
run your application and it will ensure that only one instance of the application is run
at a time. If another instance is already running, RunOne simply aborts without starting a
new instance. If you want to kill the previous instance, you may want to use the KillProcess
utility. In addition, RunOne can be used to run applications in hidden or minimized
||KillProcess can be used to quickly close or terminate single or multiple
||RunAs is a command line utility that can be used to run a program under
different user account. It is similar to the Windows 2000/XP/2003/Vista native RunAs
utility, but it has some distinct features making it more usable then the native version.
For example, it accepts password as a command line parameter so that it can be used in
batch files; it can also bind started process to the interactive user Desktop so it can be
used to start interactive processes from various services such as 24x7 Scheduler, 24x7
Event Server and other.
||Use Logon utility to schedule Desktop unlocks on Windows
NT/2000/XP/2003/Vista systems. This utility should be run when the system is locked and
before running other processes requiring simulated user input (using SendKeys or 24x7
||FileBinReplace allows multi-file search and replace operations in binary
files. FileBinReplace is very fast and can process multiple files described by a file
mask. Just as other utilities, it can be run both from the DOS command line and from batch
||Restart computers remotely. This utility can be used on Windows
NT/2000/XP/2003/Vista systems only.
||Use Wait utility to make your batch files wait.
Additional job templates
General scripts and tips
Advanced scripts and tips
Other scripts and tips
If you have some good
scripts or tips that you would like to share, please
submit them for adding to this archive.
© Copyright 2016, SoftTree Technologies, Inc.