* Machine: Windows 2025 Datacenter v24h2.
I'm trying to manually run a batch file using a task under Task Scheduler. The ultimate goal is to have the batch file run automatically at set times. I have set up the task and am testing it by running it manually under my username, let's call my username "User1". But we have set it up to run automatically under another username "BatchUser".
The .bat file is running without an error when I start it but does not show the cmd.exe window so I can see its progress. Here's my command line for the Action:
And my parameter:
The /k is supposed to mean show the cmd.exe window while it runs. This works fine on my laptop which was upgraded from Windows 10 to Windows 11 this week.
Any idea how to manually run this task and show the cmd.exe window while I view the output of the program?
Thanks.
I'm trying to manually run a batch file using a task under Task Scheduler. The ultimate goal is to have the batch file run automatically at set times. I have set up the task and am testing it by running it manually under my username, let's call my username "User1". But we have set it up to run automatically under another username "BatchUser".
The .bat file is running without an error when I start it but does not show the cmd.exe window so I can see its progress. Here's my command line for the Action:
Code:
c:\windows\system32\cmd.exe
Code:
/k "e:\Jobs\Prod\myproject\gotestt.bat"
The /k is supposed to mean show the cmd.exe window while it runs. This works fine on my laptop which was upgraded from Windows 10 to Windows 11 this week.
Any idea how to manually run this task and show the cmd.exe window while I view the output of the program?
Thanks.
- Windows Build/Version
- Windows 2025 Datacenter v24h2.
Last edited:
My Computer
System One
-
- OS
- Windows 11
- Computer type
- PC/Desktop
- Manufacturer/Model
- HP Omen 30L GT13-1xxx
- CPU
- AMD Ryzen 5 5600G with Radeon Graphics, 3901 Mhz
- Memory
- 16GB
- Graphics Card(s)
- NVidia GeForce RTX 3060
- Internet Speed
- 50Mb/s download




