Backup restores Office 2010 batch Code

Source: Internet
Author: User
Tags goto

@echo off

title = = = Manual Backup Restore Office 2010 Professional Add Version = =

Before Echo recovers, verify that the key was successfully activated for the original installation and that the hardware did not change!

echo if not confirmed please close this program directly!

Echo.

: Begin

Set "xxx=" &set/p xxx= Please select (1. Back up 2. Restore):

If "%xxx%" NEQ "1" If "%xxx%" NEQ "2" Cls&goto begin

Cls&goto xx%xxx%

: xx1

copy/y "%allusersprofile%microsoftofficesoftwareprotectionplatformtokens.dat"

copy/y "%allusersprofile%microsoftofficesoftwareprotectionplatformcachecache.dat"

echo Backup Complete!

echo Please close directly or press any key to exit ...

Pause >nul

Goto:eof

: xx2

net stop "Osppsvc"

copy/y Tokens.dat "%allusersprofile%microsoftofficesoftwareprotectionplatform"

copy/y Cache.dat "%allusersprofile%microsoftofficesoftwareprotectionplatformcache"

Echo restored successfully!

echo Please close directly or press any key to exit ...

Pause >nul

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.