Backup/updateFileNamePro/Form1.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace updateFileNamePro
{
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
public class Form1 : Form
{
private Button btnOpen;
private Button btnStart;
private IContainer components = null;
private FolderBrowserDialog folderBrowserDialog1;
private Label label1;
private Label label2;
private Label label3;
private LinkLabel linkLabel1;
private TextBox txtFolderPath;
private TextBox txtNewZfc;
private TextBox txtReplaceZfc;
public Form1()
{
this.InitializeComponent();
}
private void btnOpen_Click(object sender, EventArgs e)
{
this.folderBrowserDialog1.ShowDialog();
this.txtFolderPath.Text = this.folderBrowserDialog1.SelectedPath;
}
private void btnStart_Click(object sender, EventArgs e)
{
string str = this.txtFolderPath.Text.Trim();
if (string.IsNullOrEmpty(str))
{
MessageBox.Show("请选择文件夹!");
}
else if (!Directory.Exists(str))
{
MessageBox.Show("文件夹不存在,请重新选择!");
this.txtFolderPath.Text = string.Empty;
}
else
{
try
{
string str2 = this.txtReplaceZfc.Text.Trim();
string[] files = Directory.GetFiles(str);
if ((files == null) || (files.Length == 0))
{
MessageBox.Show("当前文件夹中不存在要修改的文件!");
}
else
{
string newValue = this.txtNewZfc.Text.Trim();
foreach (string str4 in files)
{
后面还有 112 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。