Running batch File in Windows 8.1

cadtot

New Member
Messages
4
Location
New Zealand
I accidentally set the file open of .bat files to Notepad. From a link in this forum (How to Restore Default File Extension Type Associations in Windows 8 and 8.1)was able to reset the registry back I think. The bat file not longer asks for notepad but instead opens "How do you want to open this file" and ask me to look for an app. The batch files still do not run.

Any help gladly accepted.
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    Tablet
    System Manufacturer/Model
    Surface Pro 2
Hi and Welcome to EightForums,

In a command prompt


Restore the default file type association.
Type 'assoc .bat'
It should return with
..bat=batfile

If not

Type 'assoc .bat=batfile'

Restore the default "Open" action for the file type.
Type 'ftype batfile'
should return with
batfile="%1" %*

If not

Type 'ftype batfile="%1" %*'

See if this helps.

Cheers,
Jamie
 

My Computer

System One

  • OS
    Windows 8.1 Pro x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Self Built
    CPU
    Intel Core i5-2500K @ 3.30GHz - S1155
    Motherboard
    Asus P8P67 LE Rev3, Intel P67, S115
    Memory
    8GB Corsair DDR3 XMS3, PC3-12800
    Graphics Card(s)
    NVIDIA GeForce GTX 650
    Sound Card
    On-Board
    Monitor(s) Displays
    3 x 24" {Extended Display}
    Screen Resolution
    1920 x 1080
    Hard Drives
    300GB Seagate Barracuda 7200
    PSU
    550W Coolermaster GX550
    Case
    Silverstone Precision PS04B
    Cooling
    Stock
    Keyboard
    Logitech K120
    Mouse
    World of Warcraft Cataclysm MMO Gaming Mouse
    Internet Speed
    80MB
    Browser
    Chrome
    Antivirus
    MSE / Windows Defender

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
Still not working

Hi
Still not working.

JDobbsy1987
I have reset the system as per the assoc and ftype command and get the results you indicate but it still is looking for an app and does not run batch files.

Ztruker
Using the registry reset as per your link resets the values but I still get the same result.

The system I am running is a Surface Pro 2 running Windows 8.1. I have compared the settings with a Surface Pro 3 - the registry values are identical that I can see but I still get the issue. The Surface Pro 3 runs batch files fine

Comparing the setting with my Dell laptop (Precision M6700 running Windows 7) the registry settings look to be the same.

One difference though between the Surface pro 2 and the other two systems:

On my Surface Pro 2, when I look for the file associations (Default Programs, Set Associations, the description says "BAT File" and then unknown application. On the Surface 3 and the Dell, the description says "Windows Batch File" rather than "BAT File". Any ideas on how to change this in the Surface Pro 2?

Anyway, thank you both for your input.
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    Tablet
    System Manufacturer/Model
    Surface Pro 2
Try running this batch file---

View attachment Repair.bat

Download it, right click it & choose Properties & unblock it & right click it again & choose Run as Administrator.

It runs sfc & dism commands.

Report back with results please, :)
 

My Computer

System One

  • OS
    Windows 8.1.1 Pro with Media Center
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Gateway
    CPU
    AMD K140 Cores 2 Threads 2 Name AMD K140 Package Socket FT1 BGA Technology 40nm
    Motherboard
    Manufacturer Gateway Model SX2110G (P0)
    Memory
    Type DDR3 Size 8192 MBytes DRAM Frequency 532.3 MHz
    Graphics Card(s)
    ATI AMD Radeon HD 7310 Graphics
    Sound Card
    AMD High Definition Audio Device Realtek High Definition Audio USB Audio Device
    Monitor(s) Displays
    Name 1950W on AMD Radeon HD 7310 Graphics Current Resolution 1366x768 pixels Work Resolution 1366x76
    Screen Resolution
    Current Resolution 1366x768 pixels Work Resolution 1366x768 pixels
    Hard Drives
    AMD K140
    Cores 2
    Threads 2
    Name AMD K140
    Package Socket FT1 BGA
    Technology 40nm
    Specification AMD E1-1200 APU with Radeon HD Graphics
    Family F
    Extended Family 14
    Model 2
    Extended Model 2
    Stepping 0
    Revision ON-C0
    Instruction
    Browser
    Opera 24.0
    Antivirus
    Avast Internet Security
Hi David

Ran the process - could not file any unblock option within properties but downloaded your batch into my user downloads library.

Opened a command prompt as Administrator, ran the batch file, process completed successfully, took a while, but no change - issue still there, running batch files still asks for app.

The batch file will run within a command prompt but not from the desktop shell.

Thanks for the input but any other ideas?
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    Tablet
    System Manufacturer/Model
    Surface Pro 2
What about doing a System Restore to before you made the change.
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
Hi All

Thanks for all your input. In the end I refreshed the Windows 8.1 in the Surface and batch files now run. The metro Apps restored themselves but the desktop app had to be restored. (I was running Autocad, Revit and Max Design on the Surface) so took a bit of time.

Thanks again

Cadtot
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    Tablet
    System Manufacturer/Model
    Surface Pro 2
Glad you got it fixed. :)
 

My Computer

System One

  • OS
    Windows 8.1.1 Pro with Media Center
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Gateway
    CPU
    AMD K140 Cores 2 Threads 2 Name AMD K140 Package Socket FT1 BGA Technology 40nm
    Motherboard
    Manufacturer Gateway Model SX2110G (P0)
    Memory
    Type DDR3 Size 8192 MBytes DRAM Frequency 532.3 MHz
    Graphics Card(s)
    ATI AMD Radeon HD 7310 Graphics
    Sound Card
    AMD High Definition Audio Device Realtek High Definition Audio USB Audio Device
    Monitor(s) Displays
    Name 1950W on AMD Radeon HD 7310 Graphics Current Resolution 1366x768 pixels Work Resolution 1366x76
    Screen Resolution
    Current Resolution 1366x768 pixels Work Resolution 1366x768 pixels
    Hard Drives
    AMD K140
    Cores 2
    Threads 2
    Name AMD K140
    Package Socket FT1 BGA
    Technology 40nm
    Specification AMD E1-1200 APU with Radeon HD Graphics
    Family F
    Extended Family 14
    Model 2
    Extended Model 2
    Stepping 0
    Revision ON-C0
    Instruction
    Browser
    Opera 24.0
    Antivirus
    Avast Internet Security
Back
Top