摘要:
摘自 csdn// 看了看别的资料有提取CPU,MAC的现成代码却没有硬盘序列号,找了好久才找到提取硬盘序列号的参数。于是自己给补上了。 <script> function disk() {//硬盘序列号 信息 var locator = new ActiveXObject ("WbemScripting.SWbemLocator"); var service = locator.ConnectServer("."); var properties = service.ExecQuery("SELECT * FROM Win32_D 阅读全文
posted @ 2011-04-13 16:39
梦幻泡影
阅读(1653)
评论(0)
推荐(0)
摘要:
/// <summary> /// ChunkHelper 帮助将序列分成若干块。 /// /// 如果 totalItemCount 是 11,chunkSize 是 5,则: /// chunk[0] 0, 1, 2, 3, 4 /// chunk[1] 5, 6, 7, 8, 9 /// chunk[2] 10 /// </summary> public class ChunkHelper { /// <summary> /// /// </summary> /// <param name="totalItemCount&q 阅读全文
posted @ 2011-04-13 16:27
梦幻泡影
阅读(280)
评论(0)
推荐(0)
摘要:
using System;using System.Text;using System.IO;using System.Linq;public static partial class FileUtil{ #region 删除目录和文件 /// <summary> /// 删除目录及其下面的所有子目录和文件。如果目录有只读属性,则先去掉只读属性,然后删除。 /// </summary> /// <param name="path"></param> public static void DeleteDirectory(stri 阅读全文
posted @ 2011-04-13 14:12
梦幻泡影
阅读(507)
评论(0)
推荐(0)
摘要:
use my_databasego--删除外键约束DECLARE c1 cursor forselect 'alter table ['+ object_name(parent_obj) + '] drop constraint ['+name+']; 'from sysobjectswhere xtype = 'F'open c1declare @c1 varchar(8000)fetch next from c1 into @c1while(@@fetch_status=0)beginexec(@c1)fetch next f 阅读全文
posted @ 2011-04-13 13:49
梦幻泡影
阅读(212)
评论(0)
推荐(0)
摘要:
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /u pathpausepath 是 exe 文件的路径 阅读全文
posted @ 2011-04-13 13:16
梦幻泡影
阅读(199)
评论(0)
推荐(0)
浙公网安备 33010602011771号