There exists in GameMaker a number of functions that enable you to manipulate files of all types in different ways:
The following functions can be used to change file names:
NOTE These functions do not work on the actual files! They only deal with the strings related to the different path elements and should be used in conjunction with the other file functions.
Finally there are some special functions for getting filenames that can be used for loading and saving files with file-type filters. These functions will open an explorer window, and therefor cause the game to lose focus. This means that any input the game is depending on may not be correctly registered, and as such we recommend that (if using these functions in a keyboard event) you use the key up event and not the pressed or down events.
NOTE These functions are Windows and macOS only.
WARNING These functions may not work as you expect due to GameMaker being sandboxed! Please see the section on The File System for more information.