Want to diasallow root-domain url which contains '?' but want to allow for a folder inside root-domain. Robots.txt files looks like this.... User-agent: * Disallow: /imgs/ Disallow: /images/ Allow: /info/*? User-agent: Googlebot Disallow: /post.* Disallow: /donate.* Disallow: /*?
I suggest you to generate your robot.txt file from Goggle Webmaster http://www.google.com/webmasters/ tools where it will give you the valid robot.txt file and you can verify whether it is recognized my Google bot or not.
Goto Google Webmaster Tool > Site configuration > Settings and at the bottom you'll see Parameter handling. Google prefers you configure your parameter rules there instead of in the robots. It also lists parameters that Google found for you.