print logdir
This commit is contained in:
parent
236363efa8
commit
f0d6eba45d
@ -139,11 +139,13 @@ public class MetaBase extends Win32
|
|||||||
private final native String[] MetaBaseGetMultiStringValue(int datakey);
|
private final native String[] MetaBaseGetMultiStringValue(int datakey);
|
||||||
|
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
|
String key = "/LM/W3SVC";
|
||||||
try {
|
try {
|
||||||
MetaBase mb = new MetaBase();
|
MetaBase mb = new MetaBase();
|
||||||
|
|
||||||
mb.OpenSubKey("/LM/W3SVC");
|
mb.OpenSubKey(key);
|
||||||
|
String logdir = mb.getStringValue(MD_LOGFILEDIRECTORY);
|
||||||
|
System.out.println("Logdir: " + logdir);
|
||||||
String keys[] = mb.getSubKeyNames();
|
String keys[] = mb.getSubKeyNames();
|
||||||
|
|
||||||
System.out.println("Listing IIS Web Sites");
|
System.out.println("Listing IIS Web Sites");
|
||||||
@ -157,7 +159,7 @@ public class MetaBase extends Win32
|
|||||||
}
|
}
|
||||||
|
|
||||||
MetaBase vhost = new MetaBase();
|
MetaBase vhost = new MetaBase();
|
||||||
vhost.OpenSubKey("/LM/W3SVC/" + serverNum);
|
vhost.OpenSubKey(key + "/" + serverNum);
|
||||||
|
|
||||||
String[] bindings =
|
String[] bindings =
|
||||||
vhost.getMultiStringValue(MD_SERVER_BINDINGS);
|
vhost.getMultiStringValue(MD_SERVER_BINDINGS);
|
||||||
|
Loading…
Reference in New Issue
Block a user