public static void SpeckOnWin7 (string text)
{//Hongfeng written, reproduced please specify
Try
{
String lssource = "";
if (file.exists (Application.startuppath + "\\Error.txt"))
Lssource = File.readalltext (Application.startuppath + "\\Error.txt");
String LsT = "\r\n\r\n*************************************************************\r\n" + DateTime.Now.ToString ( ) + "\ r \ n" + Comminfo.userid + "\ r \ n" + comminfo.username + "\r\n******************************************************* \ r \ n ";
string [email protected] "CreateObject (" "SAPI. SpVoice ""). Speak "" "[email protected]" "" ";
File.writealltext (Application.startuppath + "\\as_speck" + ". vbs", ls_vbs_string, Encoding.GetEncoding ("GBK")); + DateTime.Now.ToString ()
System.Diagnostics.Process.Start (Application.startuppath + "\\as_speck.vbs");
}
catch (Exception ei)
{
Return
}
}
public static void SpeckOnWin7 (string text), reading text in Win7