Does Win11 still supports autoexec.bat ?


GeneralLee01

Well-known member
Member
VIP
Local time
9:49 PM
Posts
223
OS
Windows 11 Home 64-bit
Hi all,

Does Win11 still supports autoexec.bat ?

Can I simply drop the file in the root directory of the boot drive ?

Thanks
 
Last edited:

My Computer My Computer

At a glance

Windows 11 Home 64-bitIntel Core i7 13700H32GB DDR4Intel Iris Xe Graphics
OS
Windows 11 Home 64-bit
Computer type
Laptop
Manufacturer/Model
MSI Laptop - Commercial 14 H A13MG vPRO-098
CPU
Intel Core i7 13700H
Motherboard
MSl Co., Ltd. MS-14L1 (U3E1)
Memory
32GB DDR4
Graphics Card(s)
Intel Iris Xe Graphics
Sound Card
Intel Smart Sound Technology - Realtek High Definition Audio
Monitor(s) Displays
Generic 1920x1200 @ 60Hz
Screen Resolution
1920 x 1200 pixels
Hard Drives
1TB NVMe WD SSD
Mouse
Bluetooth
Browser
Microsoft Edge
Antivirus
McAfee , Malwarebytes
No, autoexec.bat and config.sys have not been used since Win 98 - not sure if it was the last one.
After that it became a full blown NT like OS (32 bit)
If you want to set path or system variables, you do that by running SystemPropertiesAdvanced.exe
then Advanced/Environment Variables.
If you want to start things at login, you go to Settings/Apps/Startup.
 

My Computers My Computers

  • At a glance

    All Branches but ReleaseAMD Ryzen 7 7735HS 3200-4500 Mhz 8 cores x 232 GB DDR5Radeon Graphic / NVIDIA GeForce RTX 4060 8 GB...
    OS
    All Branches but Release
    Computer type
    Laptop
    Manufacturer/Model
    Acer Nitro ANV15-51
    CPU
    AMD Ryzen 7 7735HS 3200-4500 Mhz 8 cores x 2
    Motherboard
    Sportage_RBH
    Memory
    32 GB DDR5
    Graphics Card(s)
    Radeon Graphic / NVIDIA GeForce RTX 4060 8 GB GDDR6
    Sound Card
    AMD/Realtek(R) Audio
    Monitor(s) Displays
    Integrated Monitor (15.3"vis)
    Screen Resolution
    FHD 1920X1080 16:9 144Hz
    Hard Drives
    KINGSTON OM8SEP4512Q-AA 1TB
    Western Digital 256GB
    PSU
    19V DC 6.32 A 120 W
    Cooling
    Dual Fans
    Mouse
    MS Bluetooth
    Internet Speed
    Fiber 1GB Cox -us & 1GB Orange-fr
    Browser
    Edge Canary- Firefox Nightly-Chrome Dev-Chrome Dev
    Antivirus
    Windows Defender
  • At a glance

    Windows 11 BetaAMD A9-94208 GB of DDR4AMD Radeon R5
    Operating System
    Windows 11 Beta
    Computer type
    Laptop
    Manufacturer/Model
    Asus X751BP
    CPU
    AMD A9-9420
    Memory
    8 GB of DDR4
    Graphics card(s)
    AMD Radeon R5
    Screen Resolution
    1600x900
    Hard Drives
    Seagate 1 TB
Hi all,

Does Win11 still supports autoexec.bat ?

Can I simply drop the file in the root directory of the boot drive ?

Thanks
Not really - you can put one in root directory and use Task Scheduler to execute it on boot up.

What are you trying to do?
 

My Computer My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
OS
Windows 11 Pro + Win11 Canary VM.
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14
CPU
I9 13th gen i9-13900H 2.60 GHZ
Motherboard
Yep, Laptop has one.
Memory
16 GB soldered
Graphics Card(s)
Integrated Intel Iris XE
Sound Card
Realtek built in
Monitor(s) Displays
laptop OLED screen
Screen Resolution
2880x1800 touchscreen
Hard Drives
1 TB NVME SSD (only weakness is only one slot)
PSU
Internal + 65W thunderbolt USB4 charger
Case
Yep, got one
Cooling
Stella Artois (UK pint cans - 568 ml) - extra cost.
Keyboard
Built in UK keybd
Mouse
Bluetooth , wireless dongled, wired
Internet Speed
900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
Browser
Edge
Antivirus
Defender
Other Info
TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)
Thanks Oat and Cerebus

> What are you trying to do?

Run a bat file that copies some files from a HD directory to HD onedrive directory at startup
 

My Computer My Computer

At a glance

Windows 11 Home 64-bitIntel Core i7 13700H32GB DDR4Intel Iris Xe Graphics
OS
Windows 11 Home 64-bit
Computer type
Laptop
Manufacturer/Model
MSI Laptop - Commercial 14 H A13MG vPRO-098
CPU
Intel Core i7 13700H
Motherboard
MSl Co., Ltd. MS-14L1 (U3E1)
Memory
32GB DDR4
Graphics Card(s)
Intel Iris Xe Graphics
Sound Card
Intel Smart Sound Technology - Realtek High Definition Audio
Monitor(s) Displays
Generic 1920x1200 @ 60Hz
Screen Resolution
1920 x 1200 pixels
Hard Drives
1TB NVMe WD SSD
Mouse
Bluetooth
Browser
Microsoft Edge
Antivirus
McAfee , Malwarebytes
  • Like
Reactions: OAT
just tried dropping the autoexec file in to the directory - C:\Users\........\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\

Now gonna test
 

My Computer My Computer

At a glance

Windows 11 Home 64-bitIntel Core i7 13700H32GB DDR4Intel Iris Xe Graphics
OS
Windows 11 Home 64-bit
Computer type
Laptop
Manufacturer/Model
MSI Laptop - Commercial 14 H A13MG vPRO-098
CPU
Intel Core i7 13700H
Motherboard
MSl Co., Ltd. MS-14L1 (U3E1)
Memory
32GB DDR4
Graphics Card(s)
Intel Iris Xe Graphics
Sound Card
Intel Smart Sound Technology - Realtek High Definition Audio
Monitor(s) Displays
Generic 1920x1200 @ 60Hz
Screen Resolution
1920 x 1200 pixels
Hard Drives
1TB NVMe WD SSD
Mouse
Bluetooth
Browser
Microsoft Edge
Antivirus
McAfee , Malwarebytes
Test worked perfectly. So only difference from DOS is that one needs to drop the file in a different directory !
 

My Computer My Computer

At a glance

Windows 11 Home 64-bitIntel Core i7 13700H32GB DDR4Intel Iris Xe Graphics
OS
Windows 11 Home 64-bit
Computer type
Laptop
Manufacturer/Model
MSI Laptop - Commercial 14 H A13MG vPRO-098
CPU
Intel Core i7 13700H
Motherboard
MSl Co., Ltd. MS-14L1 (U3E1)
Memory
32GB DDR4
Graphics Card(s)
Intel Iris Xe Graphics
Sound Card
Intel Smart Sound Technology - Realtek High Definition Audio
Monitor(s) Displays
Generic 1920x1200 @ 60Hz
Screen Resolution
1920 x 1200 pixels
Hard Drives
1TB NVMe WD SSD
Mouse
Bluetooth
Browser
Microsoft Edge
Antivirus
McAfee , Malwarebytes
Test worked perfectly. So only difference from DOS is that one needs to drop the file in a different directory !
Not quite - it doesn't have to be named autoexec, nor are you limited to just the one .bat file. Anything you put in that Startup folder will run at sign in.
 

My Computers My Computers

  • At a glance

    Windows 11 HomeAMD Athlon Silver 3050U8GBRadeon Graphics
    OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23-R9VY
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD (from April 2026: 250GB EVO 850)
    Internet Speed
    150 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October 2021 it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update, 24H2 on 3rd October 2024 through Windows Update by setting the Target Release Version for 24H2, and 25H2 on 30th September 2025 through Windows Update by setting the Target Release Version for 25H2.

    UPDATE - 11 April 2026: due to mechanical deterioration this PC has been retired from active duty. The OS with all software and files has been migrated to my System Seven in 'Other systems' to carry on as my general purpose 'main machine'.
  • At a glance

    Windows 11 ProIntel® Core™ i5-520M8GB(integrated graphics) Intel HD Graphics
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround.

    In-place upgrade to 22H2 using ISO and a workaround.
    Feature Update to 23H2 by manually installing the Enablement Package.
    In-place upgrade to 24H2 using hybrid 23H2/24H2 install media.
    Upgraded to 25H2 by Enablement Package.

    Also running Insider Dev, and Canary builds and Windows 10 as native boot .vhdx.
  • My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro.

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Dev, Beta, and RP 24H2 as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 8GB RAM, 1TB NVMe ssd, supported device running Windows 11 Pro, plus Insider Beta, Dev, and Canary builds (and a few others) as a native boot .vhdx.

    My SYSTEM SIX is a Dell Latitude 5550, Core Ultra 7 165H, 64GB RAM, 1TB NVMe SSD, supported device, Windows 11 Pro 24H2, Hyper-V host machine. Updated to 25H2 on 30th September 2025.

    My SYSTEM SEVEN is a Lenovo Thinkpad T580, Intel Core i7-8650U, 16GB RAM, 512GB NVMe SSD + 2nd 512GB NVMe SSD, a supported device for Windows 11. This is my current general purpose 'main machine'. The installed Windows 11 Home from my System One has been migrated to this machine.
Hey, I am lazy, no need to rename the file :-)

In DOS it was possible to start up multiple batch files ones as well

(y)
 

My Computer My Computer

At a glance

Windows 11 Home 64-bitIntel Core i7 13700H32GB DDR4Intel Iris Xe Graphics
OS
Windows 11 Home 64-bit
Computer type
Laptop
Manufacturer/Model
MSI Laptop - Commercial 14 H A13MG vPRO-098
CPU
Intel Core i7 13700H
Motherboard
MSl Co., Ltd. MS-14L1 (U3E1)
Memory
32GB DDR4
Graphics Card(s)
Intel Iris Xe Graphics
Sound Card
Intel Smart Sound Technology - Realtek High Definition Audio
Monitor(s) Displays
Generic 1920x1200 @ 60Hz
Screen Resolution
1920 x 1200 pixels
Hard Drives
1TB NVMe WD SSD
Mouse
Bluetooth
Browser
Microsoft Edge
Antivirus
McAfee , Malwarebytes
  • Like
Reactions: OAT

Latest Support Threads

Back
Top Bottom