diff --git a/Scripting.md b/Scripting.md index 5389dbb..5657383 100644 --- a/Scripting.md +++ b/Scripting.md @@ -40,7 +40,15 @@ A short description of every command. Click on the command to go to a more detai **input** command - allows you to prompt the user to enter a string and store it in a variable. Syntax: `input ` Example: `input "Choose name for test dir?" DIRNAME` Note: the variable can be created beforehand with `set` to preset the initial value. -**filesel** command - allows the user to choose a file from in a specific directory / drive. The path is stored in a variable and can be limited via wildcards. Syntax: `filesel [-d] ` Example: `filesel "Please select NAND backup" 0:/gm9/out/*_$[SERIAL]_???nand_???.bin NANDBAK` +**filesel** command - allows the user to choose a file from in a specific directory / drive. The path is stored in a variable and can be limited via wildcards. `-d` can be used to allow the user to browse dirs looking for a file. Syntax: `filesel ` Example: `filesel "Please select NAND backup" 0:/gm9/out/*_$[SERIAL]_???nand_???.bin NANDBAK` + +**dirsel** command - same as `filesel`, but with selecting a directory. Note that a final slash is not expected on the path, and there can be no wildcard patterns. Syntax: `dirsel ` Example: `dirsel "Select game folder." A:/titles/40000000 GAMEDIR` + +**allow** command - unlocks write permission to the specified location. `-a` will unlock write permissions for all files and directories in that location. Note: without this command, write permissions are still in place, the user will simply be prompted to unlock every time a write is attempted. Syntax: `allow ` Example: `allow S:/firm0.bin` + +**mkdir** command - creates a dir at the specified location. Syntax: `mkdir ` Example: `mkdir 0:/gm9/in` + +**fdummy** command - creates a dummy file at the specified location of a specified size. Existing files will not be overwritten. Syntax: `fdummy ` Example: `fdummy 0:/testfile.bin FF` (FF is 256 in regular numbers) [more to come ofc]