R
Ravi Shankar
Hi all,
Is there anyway, I can get the computer name. I know well of this program:-
public static String getComputerName(){
try{
return InetAddress.getLocalHost().getHostName();
}
catch(Exception e){
return "unknown";
}
}
But, assume that a computer has Japanese XP installed or Chinese XP
installed in which they will have their names in Japanese ro Chinese
repectively. In such cases, how can I get the hostname??
Warmest regards,
Ravi
Is there anyway, I can get the computer name. I know well of this program:-
public static String getComputerName(){
try{
return InetAddress.getLocalHost().getHostName();
}
catch(Exception e){
return "unknown";
}
}
But, assume that a computer has Japanese XP installed or Chinese XP
installed in which they will have their names in Japanese ro Chinese
repectively. In such cases, how can I get the hostname??
Warmest regards,
Ravi