sed -s does not search recursively

I would like to export the 5th line from every file within a directory. I am using GNU sed because we have no Unix or Linux environment. I used the following statement:

sed -s -n 5p c:\directory\*.*

but I only get the 5th line from one of the files in the directory. I am desperate for a listing of this line from each file in order to avoid manually finding this information and compiling in a spreadsheet.

If anyone knows how I can get each 5th line to output I would truly appreciate your help. :confused:

Hi hollingv,

Is it Windows? That command seems to work in my test, surrounding 5p between single quotes. Like this:

$ sed -s -ne '5p' files*