# Windows launcher doesn't work

**URL:** <https://discourse.slicer.org/t/windows-launcher-doesnt-work/28963>\
**Category:** Support\
**Created:** [April 17, 2023, 1:19pm UTC](https://discourse.slicer.org/t/windows-launcher-doesnt-work/28963 "2023-04-17T13:19:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kening\_Zhang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kening_zhang/32/65641_2.png) [@Kening\_Zhang](https://discourse.slicer.org/u/Kening_Zhang)\
**Post date:** [April 17, 2023, 1:19pm UTC](https://discourse.slicer.org/t/windows-launcher-doesnt-work/28963/1 "2023-04-17T13:19:24Z")

</div>

I was trying for calling a module from cli but doesn’t work.  
I tried two ways, one was directly calling the module exe, but it shown many dll files missing.  
Then I tried to use launcher but it doesn’t give any output.  
“C:\Users\13956\AppData\Local\NA-MIC\Slicer 5.2.2\NA-MIC\Extensions-31382\SlicerDMRI\lib\Slicer-5.2\cli-modules\FiberTractMeasurements.exe”  
 ![)CJVBOEIAD1H1LJTU5_UY(C](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/c/bc2cc4b15c74b1c134871a6525f5e885ea57cecd.png)  
Sorry about the content of message not in English but it says cannot find vtkDMRI.dll.

 ![OCMZ4T$RKX@(Z9`4JH_VPUN](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/7/b76f4a1807fe9ea4177293a572c77d1940f7626b.png)  
Thank you for your help.  
Regards,  
Kening Zhang

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 17, 2023, 2:02pm UTC](https://discourse.slicer.org/t/windows-launcher-doesnt-work/28963/2 "2023-04-17T14:02:56Z")

</div>

On Windows, by default the application launcher is built as a Windows GUI application (as opposed to a console application) to avoid opening a console window when starting the application. Therefore, you won’t see any console appearing or any console output when you launch a command with it. See more information [here](https://slicer.readthedocs.io/en/latest/developer_guide/debugging/tips.html#console-output-on-windows).

## Method 1

You can run the CLI using a single command using the `--launch` argument. If you want to see the output, you can use the `| more` utility like this (hit arrow key or space to navigate the process output):

```
"%localappdata%\NA-MIC\Slicer 5.2.2\Slicer.exe" --launch "%localappdata%\NA-MIC\Slicer 5.2.2\NA-MIC\Extensions-31382\SlicerDMRI\lib\Slicer-5.2\cli-modules\FiberTractMeasurements.exe" --help | more

```

## Method 2

Use Slicer launcher to start a console that can display process output:

```
"%localappdata%\NA-MIC\Slicer 5.2.2\Slicer.exe" --launch %comspec% /c start

```

In this console, you can simply run a CLI module by typing its name. For example:

```
FiberTractMeasurements.exe --help

```
