There's no real nice way I know of because it is a process outside of SQL.
You could do a count on the table but this could be slow.
You could also insert the results from the XP_CMDShell into a table and grab the rows from there. Will have to do some string manipulation to do this though.
Cheers,CrispinI can't die, there are too many people who still have to meet me!It's not a bug, SQL just misunderstood me!