Guidelines for using folder and file paths

You often need to use folder or file paths in your script to read or write at those locations.

Use the Get System Folder Path (getSpecialFolder) command

You should use the Get System Folder Path (getSpecialFolder) command when you need to use system folder paths like My Documents or Program Files.

Avoid hardcoding paths in the script

Be careful when hardcoding folder or file paths in your script. If the folder or file location changes, you need to change your script and publish a new version.

Whenever possible, use parameters to store folder or file paths that are input data to your script.