Powershell Start-Process idea64.exe ExampleProject-Files

Answered

Hi,

I'm working with my IDE in different projects at the same time. I wrote a powershell-script-helper that starts environments of every project if it is needed. Different Windows, Folder-Explorer, placing on 3 Different Monitors, ...

What I try is:

Start-Process -FilePath "C:\Users\XXXXXXX\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\203.5981.155\bin\idea64.exe" -Wait

It opens IntelliJ but the last open project only...

Problem:

  1. If Update IntelliJ, correct path update is needed
  2. Is it possible to give a project path to IntelliJ and then open it? -> If, yes -> How?

Any idea how to solve this?

 

0
2 comments

1. You can use https://www.jetbrains.com/toolbox-app/ which installs and updates a command line launcher in the common location of your choice automatically. See https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html#toolbox .

2. Yes, specify the project directory: https://www.jetbrains.com/help/idea/opening-files-from-command-line.html .

1
Avatar
Permanently deleted user

I tried the following solution.

  1. Activated Shell Scripts in Toolbox with custom save path
  2. take path of idea.cmd   (maybe called like "idea.bat" in other version of toolbox)
  3. use PowerShell Start-Process

Code for PowerShell of any Windows10 machine

$PathJetBrainsIntelliJ = "C:\...\JetBrains\idea.cmd" #insert your custom save path
$projectLocation = "E:\...\etPowershell" #insert your project path
Start-Process -FilePath $PathJetBrainsIntelliJ -ArgumentList $projectLocation

My Code at "Helferlein" etPowershell

Start-IDE "IntelliJ-IDEA-Ultimate" $etUserEnvironments[2].PathFolders[1]

Works well! Thank you! Serge Baranov

 

 

0

Please sign in to leave a comment.