I am using this code on my site.I have added this under root.

PHP Code:
User-Agent: *
Allow: /

User-Agentmsnbot
Disallow
: /ppc/
Allow: /

User-AgentSlurp
Disallow
: /ppc/
Allow: /

User-AgentGooglebot
Disallow
: /ppc/
Allow: / 

trying to exclude ppc folder from search engines.is this correct?

2-also i have a subdomain in which i do not want search engines crawling.I have added this 2nd robots.txt under subdomain.maindomain.com

PHP Code:
User-Agent: *
Disallow: / 
will these 2 robots.txt work?

thank you