当前位置:网站首页>The method of using bat command to quickly create system restore point
The method of using bat command to quickly create system restore point
2022-07-24 05:45:00 【Xiaotao 29】
Use bat Command to quickly create Win10 above Method of system restore point .
It is directly given here bat Code , Copy and paste into Notepad , Save as bat file , Run to see the effect .
@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
cd /d "%~dp0"
:setType
echo ----------- Please select the restore point type -----------
echo 1. APPLICATION_INSTALL Install application
echo 2. APPLICATION_UNINSTALL Uninstall app
echo 3. DEVICE_DRIVER_INSTALL Install device drivers
echo 4. MODIFY_SETTINGS Modify settings
echo 5. CANCELLED_OPERATION Canceled operation
set /p type=
if "%type%"=="1" (
set typeStr=APPLICATION_INSTALL
echo The current choice is APPLICATION_INSTALL Install application type
)else if "%type%"=="2" (
set typeStr=APPLICATION_UNINSTALL
echo The current choice is APPLICATION_UNINSTALL Uninstall app type
)else if "%type%"=="3" (
set typeStr=DEVICE_DRIVER_INSTALL
echo The current choice is DEVICE_DRIVER_INSTALL Install device drive type
)else if "%type%"=="4" (
set typeStr=MODIFY_SETTINGS
echo The current choice is MODIFY_SETTINGS Modify the setting type
)else if "%type%"=="5" (
set typeStr=CANCELLED_OPERATION
echo The current choice is CANCELLED_OPERATION Canceled operation type
)else (
goto setType
)
echo ----------- Please enter the restore point name -----------
set /p name=
echo The current set restore point name is %name%
echo Carry out orders :Checkpoint-Computer -Description "%name%" -RestorePointType "%typeStr%"
set command=Checkpoint-Computer -Description "%name%" -RestorePointType "%typeStr%"
echo %command%> "%temp%\temp.ps1"
::powershell Carry out orders
powershell -executionpolicy remotesigned -file "%temp%\temp.ps1"
echo ###################### Execution completed ######################
echo ###################### Execution completed ######################
echo ###################### Execution completed ######################
echo ###################### Execution completed ######################
timeout /nobreak /t 3
边栏推荐
- 【mycat】mycat安装
- Likeshop100%开源无加密-B2B2C多商户商城系统
- Insanity:1 (insanity hosting) target penetration vulnhub
- Analysis of Dao liquidity dual currency pledge mining development principle
- 【activiti】activiti环境配置
- Open Web3, once unpopular decentralized identity (did)
- Vscode configuring autoprefixer
- 达梦数据库_LENGTH_IN_CHAR和CHARSET的影响情况
- 达梦数据库_支持的表类型,用法,特性
- plsql查询数据乱码
猜你喜欢

Flink format series (1) -json

【mycat】mycat相关概念

推荐一款完全开源,功能丰富,界面精美的商城系统

波卡生态发展不设限的奥义——多维解读平行链
![Use streaming media to transfer RSTP to the Web terminal for playback (II) [review]](/img/b9/2c0e6eb19acaa2356ff49f6e272826.png)
Use streaming media to transfer RSTP to the Web terminal for playback (II) [review]

Flink watermark mechanism

likeshop单商户SAAS商城系统搭建,代码开源无加密。

Creation and generation of SVG format map in Heilongjiang Province

Insanity:1 (insanity hosting) target penetration vulnhub

【mycat】mycat安装
随机推荐
对接CRM系统和效果类广告,助力企业精准营销助力企业精准营销
Review the whole process of the 5th Polkadot Hackathon entrepreneurship competition, and uncover the secrets of the winning projects!
ERP+RPA 打通企业信息孤岛,企业效益加倍提升
Flink 时间流处理
ThreadLocal存储当前登录用户信息
Flink函数(1):rich function
波卡创始人 Gavin Wood:波卡治理 v2 会有哪些变化?
highcharts使用自定义矢量地图
多商户商城系统功能拆解11讲-平台端商品栏目
【mycat】mycat配置文件
SSM项目配置中问题,各种依赖等(个人使用)
利用流媒体将RSTP流转成WEB端播放(二)[可回看]
【activiti】流程变量
Cess test online line! The first decentralized storage network to provide multiple application scenarios
Use streaming media to transfer RSTP to the Web terminal for playback (II) [review]
Whole station downloader recommendation
电商系统PC商城模块介绍
MySQL queries the last four digits of the mobile phone number. How to write the first few digits?
Polkadot | 一文解读颠覆传统社媒的Liberty计划如何在波卡落地
【数据挖掘】聚类分析的简要介绍