Right click the database>>Tasks>>GenerateScripts>>Choose Objects(In your case select stored procedure)>>Click Next>>Set Scripting Options(There will be a radio button Single File and Single file per object). Check Single file per object which will generated SP files for each sp in the DB in the specified directory.