登录
首页 » C# » ReplaceText

ReplaceText

于 2013-09-22 发布 文件大小:2KB
0 157
下载积分: 1 下载次数: 8

代码说明:

  批量替换文件中字符串,方便修改代码中字符串和文件中字符(Replace the file in a string,Easy to modify the code and documentation for the string of characters)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • tightvnc
    说明:  tightvnc 是RTSP协议,C++开发的视频直播,点播,程序。功能强大。服务器LINUX,客户端windows.(tightvnc is the RTSP protocol, C++ development of the video broadcast, on demand, program. Powerful. Server, LINUX, the client windows.)
    2020-12-30 13:39:00下载
    积分:1
  • 所有模块资料
    说明:  msp430各模块程序,基于一些外设的程序模块例程(MSP430 module program, based on some peripheral program module routines)
    2020-06-25 09:20:02下载
    积分:1
  • c# 扫描IP Http Header
    c# 扫描IP Http Headerusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;using System.IO;namespace HScan{ public partial class Form1 : Form { int _currentThreads = 0; int _maxThreads = 100; Thread main = null; Thread mt = null; List threads = new List(); public Form1() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; } private void btnStart_Click(object sender, EventArgs e) { btnStart.Enabled = false; if (txtStart.Text.Trim() == "") { MessageBox.Show("起始IP不能为空."); return; } if (txtEnd.Text.Trim() == "") { MessageBox.Show("结束IP不能为空."); return; } int ts = Convert.ToInt32(txtThreads.Text); _maxThreads = ts; string startIp = txtStart.Text; string endIp = txtEnd.Text; TParameter tp=new TParameter(); tp.StartIp=startIp; tp.EndIp=endIp; tp.ThreadCount=ts; main = new Thread(new ParameterizedThreadStart(StartMe)); main.Start(tp); } protected void ThreadManage() { Thread c=null; while (true) { System.Object lockThis = new System.Object(); lock (lockThis) { for (int i = 0; i < threads.Count; i ) { if (threads[i] != null && !threads[i].IsAlive) { c = threads[i]; break; } } if (c != null) { threads.Remove(c); } } } } protected void StartMe(object ob) { mt = new Thread(new ThreadStart(ThreadManage)); mt.Start(); TParameter p = ob as TParameter; string curIp = p.StartIp; while (true) { for (int i = 0; i < _maxThreads; i ) { if (curIp != "") { if (_currentThreads >= _maxThreads) break; System.Object lockThis = new System.Object(); lock (lockThis) { _currentThreads ; if (_currentThreads > _maxThreads) _currentThreads = _maxThreads; string tip = curIp; Thread t = new Thread(new ParameterizedThreadStart(Run)); t.Start(tip); threads.Add(t); curIp = IPUtility.getLastIp(curIp, p.EndIp, 1); } } else { break; } } } } protected void Run(object ob) { string ip = ob.ToString(); SocketGetHead h = new SocketGetHead(); string ret = h.GetHtml(ip, 80); if (ret.IndexOf("DVRDVS-Webs") > 0) { ListViewItem item = new ListViewItem(); item.SubItems[0].Text = (listView1.Items.Count 1).ToString(); ListViewItem.ListViewSubItem lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = ip; item.SubItems.Add(lvSubItem); lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = "DVRDVS-Webs"; item.SubItems.Add(lvSubItem); listView1.Items.Add(item); } System.Object lockThis = new System.Object(); lock(lockThis) { lblCurIp.Text = ip; _currentThreads--; if (_currentThreads < 0) _currentThreads = 0; } } private void tsmCopy_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { string ip = listView1.SelectedItems[0].SubItems[1].Text; Clipboard.SetText(ip); } } private void tsmExport_Click(object sender, EventArgs e) { StreamWriter writer = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory "\export.txt",true); foreach (ListViewItem item in listView1.Items) { string ip=item.SubItems[1].Text; writer.WriteLine(ip); writer.Flush(); } writer.Flush(); writer.Close(); MessageBox.Show("导出成功!"); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } Thread.Sleep(5000); } private void btnStop_Click(object sender, EventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } btnStart.Enabled = true; } }}
    2014-06-23下载
    积分:1
  • Two-Level-Internal-Memory_spru609b
    keystone 2级存储结构说明手册,详细介绍了TI的存储结构,对了解DSP硬件架构很有帮助(2 storage structure keystone manual, detailing TI storage structure is helpful in understanding DSP architectures)
    2014-12-12 22:23:04下载
    积分:1
  • DSound_demo
    基于DirectSound的声音播放器。本实例将介绍使用DirecSound技术编写的声音播放器,DirecSound编程技术在多媒体编程中需要经常用到。(DirectSound-based audio player. This example describes the preparation technique using DirecSound sound player, DirecSound programming technique often used in multimedia programming needs.)
    2013-12-18 13:39:19下载
    积分:1
  • LabelTest
    UILabel简单使用,objective-c UILabel的简单使用(UILabel simple use)
    2012-12-09 14:25:13下载
    积分:1
  • Calculator
    a calculator in c++ that you can calculate mass problems so easy with
    2012-04-27 19:19:38下载
    积分:1
  • ldpc_lower_tri
    conversion of a matrix into lower triangular matrix
    2020-06-17 04:00:01下载
    积分:1
  • zuobiaoyzhoushang
    塔式太阳能排列方式 maltab编程 发排列方式(solar generate elecrity maltab)
    2021-01-12 16:58:48下载
    积分:1
  • superideoplayer
    THE efective ways for player, and the useful code, make you study the media, the technology.
    2008-03-19 16:00:22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载