
Tool
文章平均质量分 83
后知后觉℘
经常感觉自己是在跟生活玩躲猫猫,结果总是被发现。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
控制台应用修改文件内容
代码如下: if (!File.Exists(filePath)) { return; } var lines = File.ReadAllLines(filePath); for (int i = 0; i < lines.Length; i++) { if (lines[i].Contains(oldValue)) { lines[i] = lines[i].Replace(oldValue, newValue); } } File.Wri.原创 2020-09-08 22:30:48 · 426 阅读 · 0 评论 -
bat中命令行的简单应用
1.获取与输出日期 @echo off echo %date% echo %time% echo %date% %time% set TheDate=%date:/=.% echo TheDate:%TheDate% set TheTime=%time:~0,8% echo %TheDate% %TheTime% set TheDate=%TheDate:~0,10% set TheTime=...原创 2020-04-29 12:05:22 · 870 阅读 · 0 评论 -
Tool - 针对目标文件,一键添加内容
using System; using System.IO; using System.Linq; namespace ConsoleApp1 { class Program { private static string _fileName = "AssemblyInfo.cs"; private static string _strPath ...原创 2020-04-22 22:29:12 · 189 阅读 · 0 评论