# \[Action\] Open CMD on this directory

**URL:** <https://discussion.listary.com/t/action-open-cmd-on-this-directory/6842>\
**Category:** General\
**Created:** [May 19, 2021, 7:00am UTC](https://discussion.listary.com/t/action-open-cmd-on-this-directory/6842 "2021-05-19T07:00:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niiky](https://discussion.listary.com/user_avatar/discussion.listary.com/niiky/32/2908_2.png) [@Niiky](https://discussion.listary.com/u/Niiky)\
**Post date:** [May 19, 2021, 7:00am UTC](https://discussion.listary.com/t/action-open-cmd-on-this-directory/6842/1 "2021-05-19T07:00:11Z")

</div>

Hello,

I just make an action for open cmd on the directory of the selected file on listary, since I saw this on many posts on the forum of ppl asking it, it may be help somebody.

Make a new action and call it Open Bash Here (or any other name)  
On path write: %comspec%  
On arguments: /k cd “{action\_path:parent}”

Thats it, now you can assign it with a hotkey to make even easy to launch a cmd window on the directory of the selected file
