File System Functions

There exists in GameMaker Studio 2 a number of functions that enable you to manipulate files 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 ONLY
WARNING! These function may not work as you expect due to GameMaker Studio 2 being sandboxed! Please see the section on File System Limits for more information.