The Stroke Path command paints the border of a path. The Stroke Path command allows you to create a paint stroke (using the current settings for your painting tools) that follows any path. This is completely different from the Stroke layer effect, which doesn’t mimic the effect of any of the painting tools.
Alt-click (Windows) or Option-click (Mac OS)
the Stroke Path button at
the bottom of the Paths palette.
Alt-drag (Windows) or Option-drag (Mac OS) the path to the Stroke Path button.
Choose Stroke Path from the Paths palette menu. If the selected path is a path component, this command changes to Stroke Subpath.