- 1、本文档共19页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
批处理bat文件实现各种功能(Batch bat file implements various functions)
批处理bat文件实现各种功能(Batch bat file implements various functions)
Batch bat file implements various functions
The bat file automatically copies and deletes commands.
1: here is the copy of the cd.dll file to windows\system32 content of the bat file:
Copy cd.dll%windir%\system32
2: the following line is to uninstall the cd.dll in the windows\system32 directory, which is to delete the files copied above:
Del%windir%\system32\cd.dll
3: delete the files in the download folder, as follows:
Del C:\DOWNLOAD\*.*
Note: the Del command here can only delete files and cannot delete folders. To remove the folder, you must use the RD command, as follows:
Rd Filemon
Here, the FILEMON folder and the bat file in the same directory, save the specific path. But Rd can only delete empty folders
To delete the folder and all subdirectories and files inside it, use the RD command with the /s /q parameter,
The /s parameter indicates the deletion of the folder and its subdirectories and files below
The /q parameter indicates that no validation is required
Examples are as follows:
Rd 123, /s, /q
2 create folders
Example: create 3 new folders at E:\My documents once: Newfolder1, Newfolder2, Newfolder3
@echo off
MD E:\My documents\Newfolder1
MD E:\My documents\Newfolder2
MD E:\My documents\Newfolder3
3 execute the program, open the file
L1: the implementation of the C program under the WinWord.exe
Start C:\WinWord.exe
L2: open a file with a program, such as opening a HTM file with TheWorld.exe
Start, d:\TheWorld\TheWorld.EXE, C:\, I have a love.Htm
[note] both spaces in a program or file path must be enclosed in quotation marks:
Start d:\TheWorld\TheWorld.EXE e:\My documents\, I have a love.Htm.
Not all the quotes in a program is full, must use the semiangle input format, so close Chinese characters input system before the best quotes
XCOPY also has many functions, plus parameters. /s /e the role of the above parameters are sub directory and empty directories are copied in the past, some use example
您可能关注的文档
- 扳手腕训练文档(Wrench wrist training document).doc
- 批处理的极限应用(Limit application of batch processing).doc
- 找回好睡眠(Get a good sleep).doc
- 找回还原精灵的密码的七种方法(Seven ways to retrieve the restore wizard's password).doc
- 找回丢失的windows 任务栏图标(Retrieve the missing windows taskbar icon).doc
- 找工作的五险一金你懂么(The job five social insurance and one housing fund you know).doc
- 找广告牌上的错别字大全(Find the billboard typos Daquan).doc
- 找回删除的文件 __一不小心把文(Recover deleted files __ accidentally put a paper).doc
- 技击之神李书文(Li Shuwen, the God of martial arts).doc
- 技术交流彩印厂的作业工序(Technical exchange process of printing plant).doc
最近下载
- 通桥(2017)2101-Ⅱ时速160公里客货共线铁路预制后张法简支T梁24m.pdf
- 胡壮麟《语言学教程》(第5版)@第七章@复习笔记.pdf
- 2018年中级经济师考试《保险专业知识与实务》电子书.pdf VIP
- 公路收费站(所)风险管控清单.docx VIP
- 君正化工杜邦安全管理理念实施方案.pptx
- 在线网课学习课堂《空间句法与数据化设计——环境行为数据分析及设计应用》单元测试考核答案.docx
- 全面从严治党主体责任约谈资料汇编.docx VIP
- 2024年华为认证HCIA-5G(H35-660)考试题库(附答案).pdf VIP
- 《Web 程序设计》说课.ppt
- 数字经济-第1篇.pptx
文档评论(0)