批处理bat文件实现各种功能(Batch bat file implements various functions).doc

批处理bat文件实现各种功能(Batch bat file implements various functions).doc

  1. 1、本文档共19页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档