- Local time
- 5:53 PM
- Posts
- 165
- OS
- Windows 11 Pro; 21H2, Build 22000.1281
True, but it does not show the results of the batch file operation - i.e. if I ping 10 times, they don't show. The only way to get it to work is open a command window and enter the command there.Please note that technically, there is no "Cmd window" or "PowerShell window". It's either a Console Host window or a Terminal window.
On Windows 10, by default, Cmd.exe and PowerShell.exe run in the Console Host (conhost.exe).
On Windows 11, by default, Cmd.exe and PowerShell.exe run in Windows Terminal (wt.exe).
Therefore, your batch file should, by default, run in a tabbed Terminal window and look like this:
View attachment 89340
If you run your batch file with "Run as Administrator", then it should open in Console Host and look like this:
View attachment 89343
The batch file will run the same regardless of the host. It's the same Cmd.exe interpreter either way.
My Computer
System One
-
- OS
- Windows 11 Pro; 21H2, Build 22000.1281
- Computer type
- Laptop
- Manufacturer/Model
- Dell 3525
- CPU
- AMD Ryzen 3 3250 with Radeon Graphics
- Memory
- 8gb
- Graphics Card(s)
- AMD Graphics
- Sound Card
- AMD high definition audio device; Realtek audio
- Screen Resolution
- 1980x1020