文件系统
alisa525
这个作者很懒,什么都没留下…
展开
-
C#判断文件是否打开
using System.IO; using System.Runtime.InteropServices; [DllImport("kernel32.dll")] public static extern IntPtr _lopen(string lpPathName, int iReadWrite); [DllImport("kernel32.dll")] public static转载 2012-03-12 10:07:54 · 1663 阅读 · 0 评论 -
批处理命令 删除文件,重命名文件
@echo off rem %1 为路径参数; rem del /q /s del /q /s D:\数据库-勿删\Data\config.xml 删除文件 rem rename D:\数据库-勿删\Data\configC.xml config.xml 重命名文件 del /q /s %1\config.xml rename %1\configC.xml config.x转载 2012-04-11 14:48:18 · 14611 阅读 · 0 评论