The default prompt in the Command Window is ">>", but you could have the current working folder as your prompt. (Right-click inside Command Window and choose Preference… from context menu.) Regardless of what your prompt is, it is this "Current Directory" (CD) where Origin first looks to find the script file that you are running. If the current directory is not set, Origin looks first for the script file in the User Files folder and then in the Origin program folder.
There can be up to 9 predefined paths or favorite folders in Origin. To assign these, use the cdset command. First you need to use cd to change working folder and then use cdset to assign working folder to one of 9 predefined paths. It may be best to leave 1 reserved for user files folder, as this is the default assignment. These assignments get saved to the [cdset] section of the origin.ini file.
For example, at the command prompt, type the following:
cd c:\AAA
You will then see the following output:
current working directory:
c:\AAA
You can then type the following:
cdset 2
If you then run the following:
cdset
You will see the following output:
1 = C:\Documents and Settings\admin\Application Data\OriginLab\Origin8\User Files\
2 = c:\AAA
So favorite #1 is default User Files folder that you selected the first time you ran Origin and favorite #2 is the current working folder that you just set and then assigned.
Note: If you do not modify favorite #1 it stores the path to User Files folder. There is also a system variable, %Y, that stores this path too, so if needed you can always quickly reassign a favorite to the User Files folder. Also type %Y= and press Enter to see what path this string variable holds. To return the Origin program folder path, you can use the following: system.path.program$.