alex_bn_lee

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  Programming Related / CMD/batch file

[1040] In batch file, some special characters to print
摘要:Using ^ in front of the character, then it can be properly printed. C:\Users\User>echo ^^ ^ C:\Users\User>echo ^| | C:\Users\User>echo ^< < C:\Users\U 阅读全文

posted @ 2024-07-22 13:42 McDelfino 阅读(5) 评论(0) 推荐(0) 编辑

[927] Batch script related
摘要:ref: Batch Script - Quick Guide ref: Batch Script - Syntax ECHO Command @echo off By default, a batch file will display its command as it runs. The pu 阅读全文

posted @ 2023-10-25 08:48 McDelfino 阅读(16) 评论(0) 推荐(0) 编辑

[926] Batch Script - Commands
摘要:In this chapter, we will look at some of the frequently used batch commands. S.No Commands & Description 1 VER This batch command shows the version of 阅读全文

posted @ 2023-10-24 14:10 McDelfino 阅读(7) 评论(0) 推荐(0) 编辑

[902] Get the current file's directory of CMD batch scripts
摘要:In a batch file, you can use the %~dp0 special variable to get the directory of the currently executing batch file. Here's how you can do it: @echo of 阅读全文

posted @ 2023-10-10 09:03 McDelfino 阅读(9) 评论(0) 推荐(0) 编辑

[901] Reuse variables of CMD batch scripts
摘要:In a batch file, you can reuse a variable to generate different file paths by concatenating the variable with other strings or variables. Here's an ex 阅读全文

posted @ 2023-10-10 08:58 McDelfino 阅读(16) 评论(0) 推荐(0) 编辑

[900] Print an empty line of CMD batch scripts
摘要:Use the echo. command to print an empty line. @echo off echo This is a line of text echo. echo This is a new line of text This will produce the output 阅读全文

posted @ 2023-10-10 08:55 McDelfino 阅读(8) 评论(0) 推荐(0) 编辑

[893] Add comments at a batch file (CMD)
摘要:ref: How do I do comments at a Windows command prompt? REM is the standard way: REM this is a comment You could also use the double-colon convention c 阅读全文

posted @ 2023-10-09 12:44 McDelfino 阅读(12) 评论(0) 推荐(0) 编辑

【606】Terminal cmd 设置 别名 alias
摘要:参考:Mac 终端设置命令别名 参考:Windows alias给cmd命令起别名 首先查看所有的 alias,直接输入 alias 命令即可 (labelme) libingnan@Li-BingnandeMacBook-Pro bin % alias lbnenvs='conda info -- 阅读全文

posted @ 2021-07-13 16:06 McDelfino 阅读(346) 评论(0) 推荐(0) 编辑

【264】◀▶ Windows 批处理(CMD)
摘要:参考:Windows Commands 微软官方帮助 参考:DOS命令自学小窍门:巧用help命令 参考:bat批处理的注释语句 打开文件夹: start D:\abc 打开D盘abc文件夹 打开exe文件: D:\Windows-Linux\putty.exe putty.exe【在同一个文件夹内 阅读全文

posted @ 2017-08-22 13:55 McDelfino 阅读(437) 评论(0) 推荐(0) 编辑

【190】修改 PowerShell & CMD 显示字体
摘要:方法一:Windows7更改替换cmd(powershell)字体完全方法教程 说明:该方法将字体修改成只能显示英文,对于某些中文会乱码!(chcp 850) 方法二:添加中文字体(chcp 936) 修改注册表在开始运行regedit.exe进入注册表,找到下面的地方HKEY_LOCAL_MACH 阅读全文

posted @ 2015-12-16 20:17 McDelfino 阅读(1802) 评论(0) 推荐(0) 编辑

【119】开始学习CMD
摘要:平时都会用到,所以学习下没有坏处,但是一直没有找到系统的学习方法,所以自己就零零散散地记录下,以便自己以后查阅! 输入【cd..】,可以返回到父文件夹:【注】我猜"cd"的全称应该是"change directory",就是“改变目录”的意思!【注】"cd/"或是"cd\"都是返回根目录的命令! 输 阅读全文

posted @ 2013-04-18 16:57 McDelfino 阅读(326) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示