3. Next, create another file, TestCustomActions.xml in the same folder with the following codes.
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction Id="UserInterfaceCustomActions.DocLibActionsToolbar" RegistrationType="List" RegistrationId="100" GroupId="ActionsMenu" Location="Microsoft.SharePoint.StandardMenu" Sequence="1000" Title="Generate CSV file for the Custom List">
<UrlAction Url="/_layouts/TestCustomActions.aspx?List={ListId}" />
</CustomAction>
</Elements>
4. Create a page named TestCustomActions.aspx under layouts folder and add your own Business Logic.
5. Finally, deploy this feature by running the command in the command prompt.
To activate this feature: stsadm -o installfeature -filename TestCustomAction\feature.xml -url http://TestServer/Site.
Finally to see the changes in the site do an iisreset.