Still my question, if it is for their gradebook, only used by their gradebook program, and they just need one "shared" folder for just one user, nobody else needs to consult it, why don't you use the users directory?
Or do you want to use something like
Code:
\\FileServer\GradebookShare\TeachersName


If possible, just let the program write to \\FileServer\GradebookShare\%UserName%
Set (Read?) security for all teachers in one group on \\FileServer\GradebookShare\
and (Modify?) security per teacher on \\FileServer\GradebookShare\%UserName%

If in your example the teacher jdoe was teacher number 12, could you name the deepshare '\\server\share\melis1\eclass\' + @USERID
In last case, you still have to debug like Shawn suggests.