Servertec Samples
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Documentation
Samples
beep
driveinfo
envtest
eventlog
fileinfo
fstest
hostname
listfs
locktest
logoff
monitor
net
poweroff
rastest
reboot
regtest
shortcut
shutdown
Legal
Contact Us

 

The samples below demonstrate the use many of the classes and methods that make up Servertec Foundation Classes. To run any of the following samples, open an MS-DOS prompt and enter:

javavm name

javamvm - the Java VM, normally java.
name - the name of the sample from the table below.

Sample Description
beep Plays the specified system sound.
driveinfo Displays detail information for the specified drive.
envtest Basic test to demonstrate Env class.
eventlog Backup, clear, dumps or log to the specified Windows NT/2000/2003/XP event log source.

When running set source to sfc.

fileinfo Displays detail information for the specified file.
fstest Simple test to check FileSystem methods.
hostname Displays the name of the computer.
listfs Displays a list of the files and directories in a directory.
locktest Simple multi-process test to check RandomAccessFile locking.
logoff Run to logoff the computer.

Requires javaw.

monitor Monitors and reports any changes to specified directories and files.
net Used to enumerate network resources, current user name, hostname, or add and delete mapped resources.
poweroff Run to power-off the computer.

Requires that the computer support this feature and that it is run using javaw.

rastest Demonstrates use of most the methods in RandomAccessFile.
reboot Restarts the computer.

Requires javaw.

regtest Shows use of RegistryKey class.
shortcut Use create a new shortcut or display details for the specified shortcut.
shutdown Used to shutdown the computer.

Requires javaw.

 top of page
Copyright © 2001-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Sun Sep 04 14:56:31 EDT 2005