0
点赞
收藏
分享

微信扫一扫

快捷方式创建txt文本文档


方式1:右键新建

快捷方式创建txt文本文档_服务器

creatTxt.bat 

@echo off
setlocal enabledelayedexpansion

set "filename=新文本文档.txt"
set "counter=1"

REM 检查文件是否存在,并生成新的文件名
:loop
if exist "!filename!" (
    set "filename=新文本文档(!counter!).txt"
    set /a counter+=1
    goto loop
)

REM 创建文件
copy nul "!filename!"
echo 文件 "!filename!" 已创建。

快捷方式创建txt文本文档_创建文件_02

快捷方式创建txt文本文档_创建文件_03

再简单一点可以执行“创建txt文档 - 12.11.11.reg”这个注册表 改一下里边的命令文件地址就行

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Item0]
"MUIVerb"="创建txt文档"
"Position"="top"
"Icon"="%SystemRoot%\\System32\\shell32.dll,70"

[HKEY_CLASSES_ROOT\Directory\Background\shell\Item0\command]
@="C:\\app\\creatTxt.bat"

方式二

windows操作系统下新建txt文件快捷键_新建txt有快捷命令吗


举报

相关推荐

0 条评论