Does Win11 still supports autoexec.bat ?


GeneralLee01

Well-known member
Member
VIP
Local time
3:19 AM
Posts
205
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

System One

  • OS
    Windows 11 Home 64-bit
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Laptop Zenbook Pro 14
    CPU
    Intel Core i9-13900H 2.6 GHz, 24MB 14 cores 20 threads
    Memory
    32GB DDR5
    Graphics Card(s)
    NVIDIA GeForce RTX 4060 and Intel Iris Xe Graphics
    Monitor(s) Displays
    14.5" 2.8K OLED 16:10 120Hz 400nits
    Screen Resolution
    2880 x 1800 pixels
    Hard Drives
    1TB M.2 NVMe™ PCIe® 4.0 Performance SSD
    Mouse
    Bluetooth
    Browser
    Microsoft Edge
    Antivirus
    McAfee , Malwarebytes , Ccleaner
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

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    ASUSTeK COMPUTER INC. TUF Gaming FX705GM
    CPU
    2.20 gigahertz Intel i7-8750H Hyper-threaded 12 cores
    Motherboard
    ASUSTeK COMPUTER INC. FX705GM 1.0
    Memory
    24428 Megabytes
    Graphics Card(s)
    Intel(R) UHD Graphics 630 / NVIDIA GeForce GTX 1060
    Sound Card
    Intel(R) Display Audio / Realtek(R) Audio
    Monitor(s) Displays
    Integrated Monitor (17.3"vis)
    Screen Resolution
    FHD 1920X1080 16:9
    Hard Drives
    2 SSD SATA/NVM Express 1.3
    WDS500G2B0A-00SM50 500.1 GB
    WDCSDAPNUW-1002 256 GB
    PSU
    19V DC 6.32 A 120 W
    Cooling
    Dual Fans
    Mouse
    MS Bluetooth
    Internet Speed
    Fiber 1GB Cox -us & 400MB Orange-fr
    Browser
    Edge Canary- Firefox Nightly-Chrome Dev
    Antivirus
    Windows Defender
    Other Info
    VMs of Windows 11 stable/Beta/Dev/Canary
    VM of XeroLinux- Arch based & Debian 12
  • Operating System
    Windows 11 Insider Canary
    Computer type
    Laptop
    Manufacturer/Model
    ASUS X751BP
    CPU
    AMD Dual Core A6-9220
    Motherboard
    ASUS
    Memory
    8 GB
    Graphics card(s)
    AMD Radeon R5 M420
    Sound Card
    Realtek
    Monitor(s) Displays
    17.3
    Screen Resolution
    1600X900 16:9
    Hard Drives
    1TB 5400RPM
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

System One

  • 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

System One

  • OS
    Windows 11 Home 64-bit
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Laptop Zenbook Pro 14
    CPU
    Intel Core i9-13900H 2.6 GHz, 24MB 14 cores 20 threads
    Memory
    32GB DDR5
    Graphics Card(s)
    NVIDIA GeForce RTX 4060 and Intel Iris Xe Graphics
    Monitor(s) Displays
    14.5" 2.8K OLED 16:10 120Hz 400nits
    Screen Resolution
    2880 x 1800 pixels
    Hard Drives
    1TB M.2 NVMe™ PCIe® 4.0 Performance SSD
    Mouse
    Bluetooth
    Browser
    Microsoft Edge
    Antivirus
    McAfee , Malwarebytes , Ccleaner
  • 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

System One

  • OS
    Windows 11 Home 64-bit
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Laptop Zenbook Pro 14
    CPU
    Intel Core i9-13900H 2.6 GHz, 24MB 14 cores 20 threads
    Memory
    32GB DDR5
    Graphics Card(s)
    NVIDIA GeForce RTX 4060 and Intel Iris Xe Graphics
    Monitor(s) Displays
    14.5" 2.8K OLED 16:10 120Hz 400nits
    Screen Resolution
    2880 x 1800 pixels
    Hard Drives
    1TB M.2 NVMe™ PCIe® 4.0 Performance SSD
    Mouse
    Bluetooth
    Browser
    Microsoft Edge
    Antivirus
    McAfee , Malwarebytes , Ccleaner
Test worked perfectly. So only difference from DOS is that one needs to drop the file in a different directory !
 

My Computer

System One

  • OS
    Windows 11 Home 64-bit
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Laptop Zenbook Pro 14
    CPU
    Intel Core i9-13900H 2.6 GHz, 24MB 14 cores 20 threads
    Memory
    32GB DDR5
    Graphics Card(s)
    NVIDIA GeForce RTX 4060 and Intel Iris Xe Graphics
    Monitor(s) Displays
    14.5" 2.8K OLED 16:10 120Hz 400nits
    Screen Resolution
    2880 x 1800 pixels
    Hard Drives
    1TB M.2 NVMe™ PCIe® 4.0 Performance SSD
    Mouse
    Bluetooth
    Browser
    Microsoft Edge
    Antivirus
    McAfee , Malwarebytes , Ccleaner
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

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    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
    Internet Speed
    50 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, and 24H2 on 3rd October 2024 through Windows Update by setting the Target Release Version for 24H2.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    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, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, Canary, and Release Preview builds as a native boot .vhdx.
  • 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. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    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, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, Canary, and Release Preview builds as a native boot .vhdx.
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

System One

  • OS
    Windows 11 Home 64-bit
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Laptop Zenbook Pro 14
    CPU
    Intel Core i9-13900H 2.6 GHz, 24MB 14 cores 20 threads
    Memory
    32GB DDR5
    Graphics Card(s)
    NVIDIA GeForce RTX 4060 and Intel Iris Xe Graphics
    Monitor(s) Displays
    14.5" 2.8K OLED 16:10 120Hz 400nits
    Screen Resolution
    2880 x 1800 pixels
    Hard Drives
    1TB M.2 NVMe™ PCIe® 4.0 Performance SSD
    Mouse
    Bluetooth
    Browser
    Microsoft Edge
    Antivirus
    McAfee , Malwarebytes , Ccleaner
  • Like
Reactions: OAT

Latest Support Threads

Back
Top Bottom