Bat files no longer automatic


  1. Posts : 1
    Windows 7 Professional 64 bit
       #1

    Bat files no longer automatic


    To those that know my solution is simple - but not to me.

    When I click on a batch file it no longer loads automatically. It loads the DOS screen but then I have to retype the full batch file name.

    Under Default Programs the current default for BAT is Windows Command Processor but I am unable to change this. On another machine that works correctly it is Unknown Application.

    Is the solution a simple one or have I really screwed it up.
      My Computer


  2. Posts : 3,788
    win 8 32 bit
       #2

    Welcome to the forum. Bat files are old MS-DOS files in windows you give the extension . CMD which is the modern procces
      My Computer


  3. Posts : 206
    Windows 10 Pro x64
       #3

    Etloe said:
    To those that know my solution is simple - but not to me.

    When I click on a batch file it no longer loads automatically. It loads the DOS screen but then I have to retype the full batch file name.

    Under Default Programs the current default for BAT is Windows Command Processor but I am unable to change this. On another machine that works correctly it is Unknown Application.

    Is the solution a simple one or have I really screwed it up.
    If the Command Prompt is launched when you run the batch script then problem is with the batch script.

    Can you please post content of the batch script causing the issue.

    Lets tests to see if the issue is cause by the batch script you run.

    Please copy and paste below batch script codes into Notepad and save it as ProgressBar.bat.

    Run the ProgressBar.bat batch script and let us know if it worked.


    Code:
     @echo off & Setlocal EnableDelayedExpansion
        Color 0A
         
        Set Count=0
        Set Space=                                                  
         
        For /L %%a in (1,1,50) do (
                Cls
                Set /a Count+=2
                Set Disp=!Disp!Û
                Set Space=!Space:~1!
                Echo !Count!%%
                Echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
                For /L %%c in (1,1,2) do Echo ^|!Disp!!Space!^|
                Echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
                Ping localhost -n 1 > nul
        )
         
        Pause > nul & Exit /b
      My Computer


  4. Posts : 2,468
    Windows 7 Ultimate x64
       #4

    It seems to me that something went wrong with Explorer's file associations, affecting bat files.

    I would suggest restoring them to default to try to fix:
    Default File Type Associations - Restore - Windows 7 Help Forums

    Use both the ones for .bat and .cmd files as well to be sure.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:00.
Find Us