随笔 - 52
文章 - 0
评论 - 31
阅读 -
18万
10 2007 档案
远程重启服务器的程序
摘要:今天通过远程桌面重启服务器失败了,远程桌面就登录不进去了,不过还是能ping通的,为了能接着工作,就写了下面的代码去重启服务器。使用System.Mangement命名空间需要引用System.Mangement。 using System; using System.Collections.Generic; using System.ComponentModel; using System.Da...
阅读全文
JS 中的文件操作
摘要:function FileOperation() { var fso, f1, f2, s; fso = new ActiveXObject("Scripting.FileSystemObject"); f1 = fso.CreateTextFile(...
阅读全文
使用Process类调用EXE程序出错的问题
摘要:Process process = new Process(); string strSignToolPath = string.Empty; string strPfxFilePath = string.Empty; string password = string.Empty; string strFilePath = string.Empty; string strCmd = st...
阅读全文