Bat files no longer automatic

Etloe

New member
Local time
4:11 AM
Messages
1
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 My Computer

At a glance

Windows 7 Professional 64 bit
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP280 G1 MT
OS
Windows 7 Professional 64 bit
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 My Computer

At a glance

win 8 32 bit
Computer type
PC/Desktop
OS
win 8 32 bit
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:
 @[URL="https://www.sevenforums.com/members/echo.html"]echo[/URL] 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 My Computer

At a glance

Windows 10 Pro x64Intel Core i5 6600Corsair Vengeance LPX 16GB 2666MHz DDR4AMD Radeon R9 380 Series
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 10 Pro x64
CPU
Intel Core i5 6600
Motherboard
Gigabyte Technology Z170M-D3H-CF (U3E1)
Memory
Corsair Vengeance LPX 16GB 2666MHz DDR4
Graphics Card(s)
AMD Radeon R9 380 Series
Hard Drives
SSD
HDD
Antivirus
Eset Smart Security
Browser
Mozila Firefox

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Back
Top