Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9217

Are there commands in PowerShell 7 to split the current window into four and request to run Python files in each of them?

$
0
0

Currently, I click + 3x while holding Alt to create four divided terminals within the same tab:
Screenshot1

  • In each of these, I need to run a different Python commnd:
    1. cd "C:\Users\Computador\Desktop\Test One" && python one.py
    2. cd "C:\Users\Computador\Desktop\Test Two" && python two.py
    3. cd "C:\Users\Computador\Desktop\Test Three" && python three.py
    4. cd "C:\Users\Computador\Desktop\Test Four" && python four.py
  • Currently, I paste these paths manually, pressing Enter:
    Screenshot2

Is there any way to achieve this same result but in an automated way?

  • I'm not referring to mouse autoclick and things like that, I'm referring to commands in PowerShell itself, or something like that, to achieve this result

Viewing all articles
Browse latest Browse all 9217

Trending Articles