Windows 10: Error 0xc0000142 on Windows 10

Discus and support Error 0xc0000142 on Windows 10 in Windows 10 Network and Sharing to solve the problem; I am tech support in a corporate environment with hundreds of machines. I have a batch file which contains this line: cmd.exe /C start... Discussion in 'Windows 10 Network and Sharing' started by MarkDear, Jun 25, 2019.

  1. MarkDear Win User

    Error 0xc0000142 on Windows 10


    I am tech support in a corporate environment with hundreds of machines.

    I have a batch file which contains this line:

    cmd.exe /C start C:\Progra~2\Micros~2\Office15\EXCEL.exe

    which launches 32 bit MS Excel on my Windows 7 machine.

    Now, I need to do the same thing with 64 bit Excel on my Windows 10 laptop, so naturally I go with


    cmd.exe /C start C:\Progra~1\Micros~2\root\Office16\EXCEL.exe

    which instantly gets me the message:

    "Application Error. The application was unable to start correctly (0xc0000142). Click OK to close the application."

    After some investigation, I discover that I cannot use the ~ path notation. Instead I must use the full length path name, and enclose it in quotes. Because the 'start' command interprets the first string parameter as a title for the window, I have to include a dummy string in quotes immediately after the 'start' command so that interprets the second string parameter as the path to the Excel executable, and the program to be executed. Also, each double quote must be escaped with a caret ^. So, I end up with this:


    cmd.exe /C start ^"^" ^"C:\Program Files\Microsoft Office\root\Office16\EXCEL.exe^"



    Although this is an adequate workaround, why can I not just use the short ~ notation pathnames, and keep the script tidy?

    Notes:

    1. This happens on multiple machines, every machine tested in fact.

    2. This also occurs if I simply enter the path to the executable at a command line prompt. So, at a command prompt,

    "C:\Program Files\Microsoft Office\Root\Office16\Excel.exe" - will work perfectly, but
    C:\Progra~1\Micros~2\Root\Office16\Excel.exe - will fail with the same error.
    3. This behaviour is repeated with every executable on every path I have tried.

    4. The error box is headed with the name of the .exe, so it IS finding the executable on the path, it just won't launch it.

    5. If I type the ~ notation path in to the address bar it navigates to the folder without difficulty.

    So, it is nothing to do with:
    - being in a batch file
    - the syntax of 'start'
    - any particular executable

    - the validity of the path.

    It just seems that, at least when launching an application, ~ notation pathnames do not work with our Windows 10 image by default.

    Is there something we need to change so that they will?

    While I am grateful to anyone who takes time with this, I would respectfully ask that you only reply if you _know the answer_, and not with generic troubleshooting routines, because unless you have something truly new, I likely went through it along the path to the workaround I already have (check the path, repair MS Office, run updates, try another machine etc etc).

    :)
     
    MarkDear, Jun 25, 2019
    #1

  2. Error 0xc0000142 (windows 10)


    I get that error when running a game but it was running normally at windows 7 before upgrading.

    Error 0xc0000142 on Windows 10 [​IMG]
     
    firetiger97, Jun 25, 2019
    #2
  3. Error 0xc0000142

    Hi,

    Error 0xc0000142 could mean that the software you have downloaded might not be compatible with Windows 10. We suggest that you try running the program in compatibility mode and check if it helps.

    Here's how:

    • Right-click on the program, and then select Properties.
    • In the Properties window, go to the Compatibility
      tab.
    • Under Compatibility mode, tick the check box for Run this program in compatibility mode for:, and then choose an older version of Windows.

    If the issue persists, try reinstalling the program or check the developer for any updates for the software.

    Let us know how it turns out.
     
    Patricia Yu, Jun 25, 2019
    #3
  4. Error 0xc0000142 on Windows 10

    error code 0xc0000142

    Hi Sally,

    The error code "0xc0000142" that you encountered when opening Microsoft Office applications can be caused by several factors including a recent update or corrupted data files on the system. For us to resolve your concern, kindly answer the questions below:

    • Were there any recent changes made or updates installed prior to the issue occurring?
    • What troubleshooting steps have you attempted?
    • Which version of Microsoft Office do you have?
    • Which version and build of Windows 10 is installed on your device?

    As an initial recommendation, you can follow the steps on this
    link
    to repair an Office application. The article provides a step-by-step guide for different versions of Windows and Microsoft Office.

    We look forward to your response to our queries.
     
    Jordan Dom, Jun 25, 2019
    #4
Thema:

Error 0xc0000142 on Windows 10

Loading...
  1. Error 0xc0000142 on Windows 10 - Similar Threads - Error 0xc0000142

  2. How do you fix error 0xc0000142 in call of duty infinite warfare

    in Windows 10 Gaming
    How do you fix error 0xc0000142 in call of duty infinite warfare: When I try to start up call of duty infinite warfare it says error 0xc0000142 how do I fix it. https://answers.microsoft.com/en-us/windows/forum/all/how-do-you-fix-error-0xc0000142-in-call-of-duty/eb8fa887-0b77-494f-8734-c3e4995a5bfc
  3. How do you fix error 0xc0000142 in call of duty infinite warfare

    in Windows 10 Software and Apps
    How do you fix error 0xc0000142 in call of duty infinite warfare: When I try to start up call of duty infinite warfare it says error 0xc0000142 how do I fix it. https://answers.microsoft.com/en-us/windows/forum/all/how-do-you-fix-error-0xc0000142-in-call-of-duty/eb8fa887-0b77-494f-8734-c3e4995a5bfc
  4. 0xc0000142 error

    in Windows 10 Gaming
    0xc0000142 error: Resident evil error 0xc0000142 when I try to open the game in XBOX. https://answers.microsoft.com/en-us/windows/forum/all/0xc0000142-error/11542f1e-69d8-4b12-bdc3-05eac0dc2e31
  5. 0xc0000142 error

    in Windows 10 Software and Apps
    0xc0000142 error: Resident evil error 0xc0000142 when I try to open the game in XBOX. https://answers.microsoft.com/en-us/windows/forum/all/0xc0000142-error/11542f1e-69d8-4b12-bdc3-05eac0dc2e31
  6. Error code 0xc0000142 blue screen of death loop stuck in advanced startup

    in Windows 10 Gaming
    Error code 0xc0000142 blue screen of death loop stuck in advanced startup: Hi I have a Dell laptop running Windows 11, recently I was experiencing an error on Microsoft edge of overflowed stack files, and it wouldn't load new tabs, so I went in the windows security app and added a program "msedge.exe" and I turned on the ACG "arbitrary code guard"...
  7. Error code 0xc0000142 blue screen of death loop stuck in advanced startup

    in Windows 10 Software and Apps
    Error code 0xc0000142 blue screen of death loop stuck in advanced startup: Hi I have a Dell laptop running Windows 11, recently I was experiencing an error on Microsoft edge of overflowed stack files, and it wouldn't load new tabs, so I went in the windows security app and added a program "msedge.exe" and I turned on the ACG "arbitrary code guard"...
  8. 0xc0000142 error when launching epic games launcher

    in Windows 10 BSOD Crashes and Debugging
    0xc0000142 error when launching epic games launcher: Hi,I was trying to find a way to stop the User Account Control prompt from coming up for me every time I launched the epic games launcher, it led me to a forum on here which led to people discussing using Compatability Administrator to add ‘RunAsInvoker’ to the program. After...
  9. 0xc0000142 error when launching epic games launcher

    in Windows 10 Gaming
    0xc0000142 error when launching epic games launcher: Hi,I was trying to find a way to stop the User Account Control prompt from coming up for me every time I launched the epic games launcher, it led me to a forum on here which led to people discussing using Compatability Administrator to add ‘RunAsInvoker’ to the program. After...
  10. 0xc0000142 error when launching epic games launcher

    in Windows 10 Software and Apps
    0xc0000142 error when launching epic games launcher: Hi,I was trying to find a way to stop the User Account Control prompt from coming up for me every time I launched the epic games launcher, it led me to a forum on here which led to people discussing using Compatability Administrator to add ‘RunAsInvoker’ to the program. After...
Tags:

Users found this page by searching for:

  1. 0xc0000142: windows 10 insider preview 18963.1000