To be able to structure mel and phyton scripts in folders we need to define the maya.env file to let maya know where to look for scripts. To add a path to custom folders where we store mel scripts we open the maya.env file and add the following:
MAYA_SCRIPT_PATH = %HOMEPATH%\Documents\maya\2011-x64\scripts\rendering;
The “%HOMEPATH%” is a System path variables which refers to “\Users\{username}” in windows 7/vista and “\Documents and Settings\{username}” on win xp.
For a reference of system path varaibles see: http://en.wikipedia.org/wiki/Environment_variable