# Start cmd.exe / Terminal with parameter

**URL:** <https://forum.xojo.com/t/start-cmd-exe-terminal-with-parameter/68956>\
**Category:** General\
**Created:** [March 9, 2022, 11:52am UTC](https://forum.xojo.com/t/start-cmd-exe-terminal-with-parameter/68956 "2022-03-09T11:52:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![StefanA](https://forum.xojo.com/user_avatar/forum.xojo.com/stefana/32/286_2.png) [@StefanA](https://forum.xojo.com/u/StefanA)\
**Post date:** [March 9, 2022, 11:52am UTC](https://forum.xojo.com/t/start-cmd-exe-terminal-with-parameter/68956/1 "2022-03-09T11:52:01Z")

</div>

What’s the easiest way to start cmd.exe on Windows or Terminal on Mac with a directory as parameter?

---

<div class="post-metadata">

**Author:** ![Lawrence\_Johnson](https://forum.xojo.com/letter_avatar_proxy/v4/letter/l/87869e/32.png) [@Lawrence\_Johnson](https://forum.xojo.com/u/Lawrence_Johnson)\
**Post date:** [March 9, 2022, 2:40pm UTC](https://forum.xojo.com/t/start-cmd-exe-terminal-with-parameter/68956/2 "2022-03-09T14:40:47Z")

</div>

Do you mean you want to open a command prompt window and point it to a particular directory to start in? If so then you can do the following for windows:  
**%windir%\system32\cmd.exe /K "cd c:\"**

Change c:\ for whatever starting path you want
