首页 > win7技术
大师为你示范win7系统创建批处理文件的处理方案
zx 2021-11-04 12:46:43 win7技术今天教大家一招关于对win7系统创建批处理文件进行设置的方法,近日一些用户反映如何对win7系统创建批处理文件设置这样一个现象,当我们遇到对win7系统创建批处理文件的设置方法非常简单,只需要1、首先我们可以在任意位置新建一个“文本文档”; 2、双击打开该文本文档,将“bat”命令输入进去:下面就跟随小编脚步看看win7系统创建批处理文件具体的设置方法:
方法一:
1、首先我们可以在任意位置新建一个“文本文档”;
2、双击打开该文本文档,将“bat”命令输入进去:(这里以清理系统垃圾命令为例)
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%*.tmp
del /f /s /q %systemdrive%*._mp
del /f /s /q %systemdrive%*.log
del /f /s /q %systemdrive%*.gid
del /f /s /q %systemdrive%*.chk
del /f /s /q %systemdrive%*.old
del /f /s /q %windir%*.bak
del /f /s /q %windir%prefetch*.*
rd /s /q %windir%temp & md %windir%temp
del /f /q %userprofile%cookies*.*
del /f /q %userprofile%recent*.*
del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"
del /f /s /q "%userprofile%Local SettingsTemp*.*"
del /f /s /q "%userprofile%recent*.*"
echo 清除系统LJ完成!
echo. & pause
3、点击左上角的“文件”—“另存为”,将“保存类型”修改为“所有文件”,将文件名修改为“xitonghe.bat”(这里重点就是后面的后缀,一定要是“.bat”才行)然后点击保存;
4、在使用的时候最好在该批处理上单击右键,选择“以管理员身份运行”即可。
方法二:
1、打开“计算机”,点击“组织”—“文件夹和搜索选项”;
2、在文件夹选项中点击“查看”选卡,在“高级设置”中确保“隐藏已知文件类的扩展名”未被勾选,点击应用并确定;
3、参照方法一步骤1、2将命令输入到文本文档中,点击关闭按钮,在弹出的框中选择“保存”;
4、将“新建文本文档.txt”单击右键,选择“重命名”,将后缀名“TXT”修改为“bat”按下回车键,在弹出的警告框中点击“是”即可。
以上就是小编分享的win7系统创建批处理文件的操作方法还有不知道怎么解决的小伙伴赶快来学习一下吧!欢迎给小编留言哦!
相关教程推荐
- 2021-08-30 win7查找文件包含文字,win10查找文件包含文字
- 2021-09-13 win7系统wifi开关在哪,win7的wifi开关在哪
- 2021-10-19 win7怎么连蓝牙耳机,win7怎么连蓝牙耳机?
- 2021-10-17 win7便签损坏怎么删除,win7便签损坏怎么彻底修复
- 2021-10-15 win7电脑cpu占用率100,win7cpu占用率100%
- 2021-11-02 非mbr分区激活win7,非mbr分区无法激活win7三种
- 2021-09-02 win7电脑打开网页很慢,win7打开网页慢的解决方法
- 2021-07-27 win7简易版影响使用吗,win7还能用吗
- 2021-07-25 中柏ezbook2能装win7,中柏ezbook2硬盘在哪
- 2021-08-21 电脑一键重装系统win7,电脑一键重装系统win10