Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9118649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:12:18+00:00 2026-06-17T05:12:18+00:00

so I’m creating a LEGIT Office 2013 activator , it uses our Genuine key

  • 0

so I’m creating a LEGIT Office 2013 activator , it uses our Genuine key and runs /act script to activate it.

So in order to check for a x32 or x64 bit of Office , I made the cmd search for a file called ospp.vbs , if it was found in x86 then it is x32 , if it was found in program files then it is x64. but if it wasn’t found inside x32 it proceeds to the next step , but it tells me /microsoft was not expected , and then it closes?
Here’s my CMD file:

@echo off
echo.Microsoft Office 2013 Activator
pause >nul
cls
NET SESSION >nul 2>&1
IF %ERRORLEVEL% EQU 0 (
    goto :Start
) ELSE (
echo.
echo.
echo.
echo.           ERROR: YOU ARE NOT AN ADMIN!
ECHO.   PLEASE RUN THIS TOOL AS AN ADMIN IN ORDER FOR IT TO WORK PROPERLY
ECHO.              PRESS ANY KEY TO EXIT THE TOOL
PAUSE >NUL
EXIT
)

:Start
type "C:\program files (x86)\microsoft office\office15\ospp.vbs" >NUL 2>NUL
if %ERRORLEVEL% EQU 0 (
echo.x32 Office 2013 on x64 Machine Found.
echo.Why did you get x32 Office on an x64 Machine?
echo.Preparing to activate...
pause >nul
cls
goto :x32
) ELSE (
goto :x64check
)
:x64check
type "C:\program files\microsoft office\office15\ospp.vbs" >NUL 2>NUL
if %ERRORLEVEL% EQU 0 (
    echo.x64 Office 2013 on x64 Machine Found 
echo.or
echo.x32 Office 2013 on x32 Machine Found
echo.Preparing to Activate...
pause >nul
cls
goto :x64
) ELSE (
echo.Office 2013 Could not be found on this machine...
echo.Are you sure Office 2013 is installed?
echo.If it is installed , search for ospp.vbs in C:\program Files (x86)\Microsoft Office\Office 15\
pause >nul
cls
)

:x32
cd "C:\program files (x86)\microsoft office\Office15\"
cls
cscript ospp.vbs /remhst
cls
cscript ospp.vbs /act
cls
cscript ospp.vbs /dstatus
pause >nul
echo Check the Above to see if Activation succeded or press any key to open winword and check it maunally.
pause >nul
start winword

:x64
cd "C:\program files\microsoft office\Office15\"
cls
cscript ospp.vbs /remhst
cls
cscript ospp.vbs /act
cls
cscript ospp.vbs /dstatus
pause >nul
echo Check the Above to see if Activation succeded or press any key to open winword and check it maunally.
pause >nul
start winword

can you please tell me where my problem is?
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:12:19+00:00Added an answer on June 17, 2026 at 5:12 am

    The reason for that error message is this line:

    echo.If it is installed , search for ospp.vbs in C:\program Files (x86)\Microsoft Office\Office 15\
    

    The close parentheses ) is being interpreted as the end of the scope for the else. Escape the parentheses when using them as literals and they are not contained within quotations.

    echo.If it is installed , search for ospp.vbs in C:\program Files ^(x86^)\Microsoft Office\Office 15\
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I'm outputting a post title and in our database, it's Hello Y’all
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a small JavaScript validation script that validates inputs based on Regex. I
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have an autohotkey script which looks up a word in a bilingual dictionary
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.