asp.netÎļþºÍÎļþ¼ÐѹËõ
·¨Ò»£ºµ÷ÓÃwinrar
using Microsoft.Win32;
using System.Diagnostics;
protected void Button1_Click(object sender, EventArgs e)
{
RAR(@"E:\95413594531\GIS", "tmptest", @"E:\95413594531\");
}
/// <summary>
/// ѹËõÎļþ
/// </summary>
/// <param name="DFilePath">ÐèҪѹËõµÄÎļþ¼Ð»òÕßµ¥¸öÎļþ</param>
/// <param name="DRARName">Éú³ÉѹËõÎļþµÄÎļþÃû</param>
/// <param name="DRARPath">Éú³ÉѹËõÎļþ±£´æ·¾¶</param>
/// <returns></returns>
protected bool RAR(string DFilePath, string DRARName,string DRARPath)
{
String the_rar;
RegistryKey the_Reg;
Object the_Obj;
String the_Info;
ProcessStartInfo the_StartInfo;
Process the_Process;
try
{
the_Reg = Registry.ClassesRoot.OpenSubKey(@"Applications\WinRAR.exe\Shell\Open\Command");
the_Obj = the_Reg.GetValue("");
the_rar = the_Obj.ToString();
the_Reg.Close();
the_rar = the_rar.Substring(1, the_rar.Length - 7);
the_Info = " a " + " " + DRARName + " " + DFilePath +" -ep1"; //ÃüÁî +
Ïà¹ØÎĵµ£º
µÚÒ»ÖÖ£º
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
/// <summary>
/// CookieOper µÄժҪ˵à ......
¹«Ë¾ÔÓÐÒ»¸ö¾ÖÓòÍø£¬¾¹ý¶àÄêµÄÐÞÐÞ²¹²¹£¬ÒѾ´´½¨Á˲»ÉÙµÄÄÚÈÝ£¬°üÀ¨Ò»Ð©Êý¾Ý¿â²éѯ±¨±í¡¢¹¤×÷Á÷µÈÍøÕ¾£¬ÕâЩÍøÕ¾ÓÐһЩÊÇÓÃASP.NETÀ´¿ª·¢µÄ£¬²¢ÇÒÓÃÁ˺ܶàÄ꣬»ýÀÛÁ˺ܶàÒµÎñÊý¾Ý£»ÏÖÔÚ¹«Ë¾Ïë°Ñ¾ÖÓòÍøÓÃWSS3.0À´¼ÜÉ裬Õâ¾ÍÃæÁÙµ½Ò»¸öºÜ¼¬ÊÖµÄÎÊÌ⣬¾ÍÊÇÔõÑùÀ´´¦ÀíÕâЩ¾ÉµÄÍøÒ³¡£Èç¹ûÍƵ¹ÖØÀ´£¬ÄÇô¹¤×÷Á¿½«ÊǷdz£ÏÅÈ˵ģ ......
1. ÔÚXPÏ£¬IIS·¢²¼asp.net³ÌÐòʱ£¬ÓÐʱ»áÓöµ½±¨´í“µ±Ç°Óû§ÎÞ·¨·ÃÎÊIISÔªÊý¾Ý¿â”»ò“ASP.NETÓû§ÎÞ·¨·ÃÎÊÖ¸¶¨Ä¿Â¼”£¬ÎÊÌâµÄ½â¾ö·½·¨ÈçÏ£º
1.ÔÚÄãËùÐèÒª·ÃÎʵÄ×ÊԴĿ¼ÉÏÓÒ¼üÑ¡Ôñ “¹²ÏíºÍ°²È«”£¬È»ºóµã»÷“°²È«”ҳǩ¡ ......
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using  ......