Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

C# °²×°²¼Êð ¼°Windows·þÎñ×Ô¶¯Æô¶¯

ÉèÖÃserviceProcessInstaller1¿Ø¼þµÄAccountÊôÐÔΪ“LocalSystem”
ÉèÖÃserviceInstaller1¿Ø¼þµÄStartTypeÊôÐÔΪ"Automatic"
ÔÚ·þÎñÆ÷ÉÏÌí¼Ó°²×°³ÌÐò£¬ÔÚprivate void ProjectInstaller_AfterInstall(object sender, InstallEventArgs e)ʼþÖУ¬Ìí¼ÓÒÔÏ´úÂ룺
Process p = new Process();
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
string Cmdstring = "sc start myservice"; //CMDÃüÁî
p.StandardInput.WriteLine(Cmdstring);
p.StandardInput.WriteLine("exit");
¼´¿ÉÔÚ°²×°·þÎñºóÁ¢¿ÌÆô¶¯windows·þÎñ
 
 
×¢£º ÒýÓÃusing System.Diagnostics;//µ÷ÓÃProcess
 
C#°²×°²¼Êð
½¨Á¢Ò»¸öÐµİ²×°ÏîÄ¿ServerSetup£¨Îª¸Õ²ÅÄǸö·þÎñ½¨Á¢Ò»¸ö°²×°ÏîÄ¿£© 
ÓÒ¼ü£­Ìí¼Ó£­ÏîÄ¿Êä³ö£­Ö÷Êä³ö£­Ñ¡ÔñService1£­È·¶¨ 
ÓÒ¼ü£­ÊÓͼ£­×Ô¶¨Òå²Ù×÷£­×Ô¶¨Òå²Ù×÷ÉÏÓÒ¼ü£­Ìí¼Ó×Ô¶¨Òå²Ù×÷£­´ò¿ªÓ¦ÓóÌÐòÎļþ¼Ð£­Ñ¡Ôñ¸Õ²ÅÄǸöÖ÷Êä³ö£­È·¶¨ 
ÖØÐÂÉú³ÉÕâ¸ö°²×°ÏîÄ¿£­ÓÒ¼ü£­°²×° 
 
 
²é¿´·þÎñ,,Ôò×ÔÒѵķþÎñ("myservice")ÒÑ×Ô¶¯Æô¶¯


Ïà¹ØÎĵµ£º

ͼƬÎļþÉÏ´«, Éú³É¸ßÖÊÁ¿ËõÂÔͼ (asp.net c#)

ºǫ́´úÂ룺
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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 System.Dat ......

C#ÓëC++¡¢JAVAµÄÇø±ð


#(¶Á×ö "C sharp")ÊÇ΢Èí¹«Ë¾ÔÚÈ¥ÄêÁùÔ·¢²¼µÄÒ»ÖÖеıà³ÌÓïÑÔ,²¢¶¨ÓÚÔÚ΢ÈíÖ°Òµ¿ª·¢ÕßÂÛ̳(PDC)ÉϵÇ̨ÁÁÏà.C#ÊÇ΢Èí¹«Ë¾Ñо¿Ô±Anders HejlsbergµÄ×îгɹû.C#¿´ÆðÀ´ÓëJavaÓÐמªÈ˵ÄÏàËÆ;Ëü°üÀ¨ÁËÖîÈçµ¥Ò»¼Ì³Ð,½çÃæ,ÓëJava¼¸ºõͬÑùµÄÓï·¨,ºÍ±àÒë³ÉÖмä´úÂëÔÙÔËÐеĹý³Ì.µ«ÊÇC#ÓëJavaÓÐ×ÅÃ÷ÏԵIJ»Í¬,Ëü½è¼øÁËDelphiµÄÒ»¸ ......

C#·¢ËÍÓʼþ´úÂë £¨B/S¡¢C/S½Ô¿ÉÓã©

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  ......

C#µ÷ÓÃSQL´æ´¢¹ý³ÌÒÔ¼°·µ»ØÖµºÍ²ÎÊýµÄ»ñÈ¡

QZone Editor
.dump{}

//TODO ÓòÃû
if (location.hash) {
document.domain=location.hash.substr(1);
}

//parent.qZEditor.callback();
function init(){
//»ñÈ¡±à¼­Æ÷Ãæ°åID
var pid = frameElement.panelID;

//»ñÈ¡±à¼­Æ÷Ãæ°å¶ÔÏó ......

ÔÚC#.net³ÌÐòÖÐʹÓÃMYSQLÊý¾Ý¿â

ÏÂÃæÊÇcommond:
MySQLCommand cmd;
cmd = new MySQLDriverCS.MySQLCommand("DROP TABLE IF EXISTS test.mysqldrivercs_test",conn);
cmd.ExecuteNonQuery();
cmd.Dispose();
ÏÂÃæÊÇinsert:
string Value = "Value";
int SettingID = 1;
new MySQLInsertCommand(conn,
new object[,] {{"SettingID",SettingID},{"S ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ