---
tag: m0023
title: Select SD file
brief: Select an SD file to be executed
author: thinkyhead

group: sdcard
requires: SDSUPPORT

codes: [ M23 ]
related: [ M24 ]

parameters:
- tag: filename
  optional: false
  description: The filename of the file to open.

example:
- pre: Select a file and start it
  code: |
    > M23 /musicg\~1/jingle.gco
    Now fresh file: /musicg\~1/jingle.gco
    > M24

---

Select an SD file for printing or processing. Follow with [`M24`](/docs/gcode/M024.html) to run the selected file.
