When designing an experiment, the use of a specific drive and/or directory (i.e. C:\Experiment\image.bmp) is typically discouraged. Instead, we recommend placing the files in the same directory as the experiment. This way, only the file name and its extension (e.g. "filename.wav") must be specified, with no path or drive information in the E-Studio interface. If the files are not saved in the same folder as the ES or EBS file, the experiment won't be able to access them at run-time, and an error will occur.
However, if you do need to place your files in a sub folder under where the experiment is, we typically encourage the use of the forward slash (/) instead of the backslash (\) to separate directories.
Legacy End User Comments
|Explanation: Following a widespread computing standard, in many places E-Prime uses the backslash character "\" as an "escape" character that can change the meaning of the next character, and to avoid this one must enter a double backslash in order to escape the escape character. When entering file names into the E-Studio GUI, E-Studio typically generates code with each backslash character translated into double backslashes for you. But if you put a backslash before a left square bracket, e.g., "stimuli\[ImageFile].bmp", then E-Studio fails to treat the "[" as introducing an attribute reference and may produce a mystifying compile-time error message. |
Following the rule stated just above, you may avoid this by using double backslashes. As it happens, E-Prime, and much of Windows, also allow a forward slash as a path separator. Using a forward slash for a path separator (instead of double backslashes) conforms better with widespread computer standards used outside Windows, and seems less clumsy and more readable.
All that said, it turns out that the latest version of the E-Studio GUI (184.108.40.2063 as I write this) automatically and silently translates your backslashes in filename entries into single forward slashes, so then none of this matters any more.
TLDR: If you use an older version of E-Prime, just use single forward slashes instead of any backslashes in file name entries, as the main topic text says. If you use a more recent version, you may not have to think about any of this anymore.