Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Operational Systems & <strong>Java</strong><br />
NT Services, including pure <strong>Java</strong> applications, without manually editing the registry!"<br />
Q: Does any one know how to kill or stop a process through java?<br />
Answer: It must be a process you created, and there are rare occasions when this<br />
will not work.<br />
Process p = Runtime.getRuntime().exec(path);<br />
// later ...<br />
p.destroy();<br />
--<br />
Paul Lutus<br />
Q: I'd like to determine the free disk space in a platform independent way. So far,<br />
I've found no <strong>Java</strong> way to do so...<br />
The best I've been able to come up with is running the UNIX "df" utility (which is<br />
available for a number of non-UNIX platforms, too, such as Win32 and OS/2).<br />
Answer: Samizdat Productions Releases JConfig 2.1.1 JConfig is a class library that<br />
extends the core <strong>Java</strong> API. It lets you work with files, web browsers, processes, file<br />
types, and other system-level items in a much more advanced manner than that<br />
provided by the standard <strong>Java</strong> class libraries. A list of JConfig's features is given<br />
below.<br />
JConfig is free for most freeware and educational projects, and it now comes with the<br />
complete <strong>Java</strong> and C++ source code!<br />
** Download JConfig here:<br />
http://www.tolstoy.com/samizdat/jconfig.html<br />
Here's a partial list of JConfig's features, by category:<br />
Files:<br />
Enumerate the user's disk drives, and obtain extended information on files,<br />
directories, volumes, and filesystems: their icons, creation dates, version information,<br />
mount points, and more...<br />
Web Browsers:<br />
Launch a file or URL in the user's Web browser...<br />
Video Monitors:<br />
Enumerate and get information on the user's video monitors: bit depth, bounds, and<br />
more...<br />
External Processes:<br />
Create external processes, send basic commands to external processes, obtain the<br />
PSN or HWND of a process you created, and enumerate the currently running<br />
processes...<br />
File Types:<br />
Find applications associated with a given file type, find applications by name, and<br />
convert between Windows file extensions and Mac creator/file type codes...<br />
-boruvek<br />
file:///F|/350_t/350_tips/os_win_linux.htm (7 of 8) [2002-02-27 21:18:56]