1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Problem running batch files in W8

Discussion in 'Windows 8' started by Alex Ethridge, Feb 7, 2015.

Thread Status:
Not open for further replies.
Advertisement
  1. Alex Ethridge

    Alex Ethridge Thread Starter

    Joined:
    Apr 10, 2000
    Messages:
    9,185
    First-time user of Windows 8.

    I use batch files a lot. My batch files have many lines. Problem is that a new COMMAND window is opened with every line in the batch file. This interferes with other programs I am running. This did not happen under W7.

    How can I correct this so that all lines in a batch file run in the same command window?
     
  2. lunarlander

    lunarlander

    Joined:
    Sep 21, 2007
    Messages:
    11,821
    If you open a cmd window first and type in the batch file name to execute it, does it do the same thing?
     
  3. Alex Ethridge

    Alex Ethridge Thread Starter

    Joined:
    Apr 10, 2000
    Messages:
    9,185
    Yes. Also tried "Run as Administrator"
     
  4. Alex Ethridge

    Alex Ethridge Thread Starter

    Joined:
    Apr 10, 2000
    Messages:
    9,185
    Solved:

    Right-click the Command shortcut.
    Click Properties.
    Click the Shortcut tab
    Click the Advanced button
    Select "Run as Administrator"
    Click the OK button
    Click the OK button again.

    From now on, use this shortcut to run batches.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1142630

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice