Make sure user is there is master database and execute following command. Replace login with user_name without quote.
use master
go
grant exec on xp_cmdshell to user_name
go
Hope this is what you are looking for.
---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."