.bat files won’t run


jg39jm44

Well-known member
Local time
3:58 AM
Posts
6
OS
Windows 20 pro and Windows 11 pro Insider
I created a few bat files in Windows 10 pro (latest edition) that when copied over to Windows 11(with all updates and on Insider edition) open but will not run. Administrator box is checked in properties.
The bat files are simple files to run some Dism commands and SFC /scannow etc.
 
Windows Build/Version
11 Insider latest edition

My Computer

System One

  • OS
    Windows 20 pro and Windows 11 pro Insider
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre 360 15 inch
    CPU
    I7 8550
    Memory
    16gb
    Graphics Card(s)
    Nvidia MX 150 internal
    Sound Card
    None
    Monitor(s) Displays
    N/a
    Screen Resolution
    Ultra 4k
    Hard Drives
    Samsung 360 pro ssd
    Internet Speed
    400 mps
    Browser
    Edge & Chrome
    Antivirus
    Windows Defender
Welcome to ElevenForum!

Try modifying your batch file by adding a "pause" as the last line of the batch file. That will keep the window open so that you can see any error messages. My guess would be that the batch file is not finding the path to commands such as DISM.EXE, but hopefully this will help to confirm whether this is the case or not.
 

My Computers

System One System Two

  • OS
    Win11 Pro 25H2 (RTM+)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic
    CPU
    Intel i7-14650HX
    Memory
    32 GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    Varies as machine will often be moved to locations with different monitors
    Screen Resolution
    Varies
    Hard Drives
    1 x 1TB Gen 4 NVMe SSD
    PSU
    120W Power Brick
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • Operating System
    Win11 Pro 25H2 (RTM+)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Keyboard
    Backlit, spill resistant keyboard
    Mouse
    Buttonless Glass Precision Touchpad
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
Execute attached batch script if it works, then your scripts needs to be corrected as @hsehestedt mention use Pause command to view the error outputs.
 

Attachments

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
Thanks FreeBooter for the SFC bat file. The file ran perfectly. Also thanks to @hsehestedt for his input.

I leaned a lot from you guys and I appreciate your quick input.
 

My Computer

System One

  • OS
    Windows 20 pro and Windows 11 pro Insider
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre 360 15 inch
    CPU
    I7 8550
    Memory
    16gb
    Graphics Card(s)
    Nvidia MX 150 internal
    Sound Card
    None
    Monitor(s) Displays
    N/a
    Screen Resolution
    Ultra 4k
    Hard Drives
    Samsung 360 pro ssd
    Internet Speed
    400 mps
    Browser
    Edge & Chrome
    Antivirus
    Windows Defender
We are glad to hear your issue has been resolved, thank you for letting us know that all is now well!
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1

Latest Support Threads

Back
Top Bottom