有什么问题:
http://dev.csdn.net/article/77/77424.shtm
http://dev.csdn.net/article/77/77424.shtm
解决方案 »
- 怎么找不到Interop.WMPLib这个引用
- 问一个是查看NET源码的问题的问题。谈技术充实过年!是怎么看呢,你说?
- C#系统日志,跪求,在线等
- C# 读取 word 里某一页内容
- c#读写xml小问题
- TeamViewer如何使用?
- 在.cs代码中执行一个循环操作,如何将循环的操作显示在页面中?
- 怎样处理快操作问题,参与讨论;集思广益
- 60分雪地跪求,关于c#和flash的问题
- 如何让.NET SDK QuickStart中有关数据访问的Sample可以运行?
- -----c#制作安装包遇到的诡异问题----
- -----------------C#API问题非高手务进-------------------
String os = System.getProperty("os.name");
if (os != null && os.startsWith("Windows"))
{
try
{
String command = "cmd.exe /c ipconfig /all";
Process p = Runtime.getRuntime().exec(command);
BufferedReader br =
new BufferedReader(
new InputStreamReader(p.getInputStream()));
String line;
while ((line = br.readLine()) != null)
{
if (line.indexOf("Physical Address") > 0)
{
int index = line.indexOf(":");
index += 2;
address = line.substring(index);
break;
}
}
br.close();
return address.trim();