I've a polypath curve, how do I vertically and horizontally extrude to create a square angle along the curve?

I'm learning this software at uni and I'm totally lost. I have a path and I'm supposed to create a square angle that follows the length of the path. I think this means I need to do some kind of horizontal and vertical extrusion along the path, but I'm not sure how. The software at school is hard to understand.

I guess a good example is taking a circle path, extruding it to create a pipe, and then at the end of the pipe, I'm supposed to do some kind of horizontal extrusion to create a flange. I'm not sure how to do this, however.

SolidworksGeneral