随笔分类 -  Batch

Batch - System error 85 has occurred. The local device name is already in use
摘要: 阅读全文

posted @ 2021-11-29 10:21 frank_cui 阅读(54) 评论(0) 推荐(0) 编辑

Batch - UNC paths (\\machine\share) are not supported
摘要: 阅读全文

posted @ 2021-11-29 10:20 frank_cui 阅读(83) 评论(0) 推荐(0) 编辑

Batch - attrib 命令
摘要:原文地址:CMD中使用attrib命令设置文件只读、隐藏属性详解 本文介绍一个cmd下的一个attrib.exe的小程序,它可以用来设置文件的属性。我们知道文件的属性有只读、隐藏、系统、存档和无内容索引等5个,只读和隐藏用得比较多,另外三个用得比较少。 不知道大家有没有用过attrib.exe这个c 阅读全文

posted @ 2019-10-16 11:42 frank_cui 阅读(488) 评论(1) 推荐(0) 编辑

Batch - call, start, goto 区别
摘要:参考(待整理): 批处理命令——call 和 start 阅读全文

posted @ 2019-10-11 18:18 frank_cui 阅读(428) 评论(0) 推荐(0) 编辑

Batch - %~dp0 vs %cd%
摘要:总结 %~dp0 只表示将要“运行的”bat命令的folder,不包含bat自己的名称。 %cd%表示,“运行处”的folder 。 示例脚本内容 cd-dp0.bat存放在f盘 在C:\Users\Administrator执行脚本 执行: 结果: 在F:\执行脚本 执行: 结果: 阅读全文

posted @ 2019-10-11 17:41 frank_cui 阅读(288) 评论(0) 推荐(0) 编辑

Batch - windows batch 常用命令(cheat sheet)
摘要:原文地址:https://www.oschina.net/code/snippet_158297_4964 阅读全文

posted @ 2019-10-11 17:19 frank_cui 阅读(469) 评论(0) 推荐(0) 编辑

Batch - %~dp0 modifiers
摘要:%~dp0 简易解释 The variable %0 in a batch script is set to the name of the executing batch file. The ~dp special syntax between the % and the 0 basically 阅读全文

posted @ 2019-10-11 17:02 frank_cui 阅读(384) 评论(0) 推荐(0) 编辑

Batch - FINDSTR
摘要:总结 Searches for strings in files. 在文件中寻找特定的字符串 官方文档 阅读全文

posted @ 2019-10-07 14:34 frank_cui 阅读(301) 评论(0) 推荐(0) 编辑

Batch - 重定向符号Redirection >
摘要:总结 Don't use a piping operator, which is what ">" Redirection is. 不要使用管道运算符,即“>”。 Display text 文本显示 To display a text on screen we have the ECHO comma 阅读全文

posted @ 2019-10-07 14:32 frank_cui 阅读(422) 评论(0) 推荐(0) 编辑

Batch - FOR %%a %%b
摘要:总结 %%a refers to the name of the variable your for loop will write to. Quoted from for /?: Example 中文 1: Example 中文 2: Example 1: Above snippet would 阅读全文

posted @ 2019-10-07 14:18 frank_cui 阅读(784) 评论(0) 推荐(0) 编辑

Batch - FOR /F Delims 和 Tokens 用法
摘要:原文地址: for /f命令之—Delims和Tokens用法&总结 作者:别逗了好么 在For命令语踞饽参数F中,最难理解的就是Delims和Tokens两个选项,本文简单的做一个比较和总拮。“For /f”常用来解析文本,读取字符串。分工上,delims负责切分字符串,而tokens负责提取字符 阅读全文

posted @ 2019-10-07 13:40 frank_cui 阅读(2767) 评论(0) 推荐(0) 编辑

Batch - 忽略FORFILES “no files found” error
摘要:ref:https://stackoverflow.com/questions/16820681/suppress-forfiles-no-files-found-error Solution: The solution is to capture the output of the FORFILE 阅读全文

posted @ 2019-09-27 18:04 frank_cui 阅读(855) 评论(0) 推荐(0) 编辑

Batch - forfiles 命令详解
摘要:forfiles 命令详解 注意: 这些命令是等价的: /S 等同于 -s, /M 等同于 -m 阅读全文

posted @ 2019-09-27 17:28 frank_cui 阅读(751) 评论(0) 推荐(0) 编辑

Batch pk Shell - WindowsBatch与LinuxShell比较 [变量符号和关键字]
摘要:原文地址:WindowsBatch与LinuxShell比较[变量符号和关键字] 一 简单实例1)batch file 小结:- batch file一般以bat或cmd为后缀。- 第一行为@echo off表示关闭运行时batch file本身输入,只输出运行的结果。- rem和::表示注释。2) 阅读全文

posted @ 2019-09-27 16:47 frank_cui 阅读(683) 评论(0) 推荐(0) 编辑

Batch - C:\Progra~1是什么意思
摘要:就是那种DOS下的8.3的规范,可以这样写 C:\Progra~1也可以这样写全名字的 "C:\Program File",因为这个路径中的文件夹名有空格,要用两个英文输入法下的双引号来引上 Progra~2 refers to Program Files Progra~1 refers to Pr 阅读全文

posted @ 2019-09-09 11:03 frank_cui 阅读(1655) 评论(0) 推荐(0) 编辑

Batch - Windows Batch 常用命令
摘要:比较符号(不能用 < , >) The reason operators like > are not used is because they have special meanings in shell scripts. The > is used to redirect output; < u 阅读全文

posted @ 2019-09-09 10:30 frank_cui 阅读(1531) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 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 1
2 3 4 5 6 7 8

导航

统计

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