tag:blogger.com,1999:blog-926886608593755419.post4076804993664005075..comments2022-03-22T20:40:59.429-07:00Comments on ionous: perforce add with wildcardsionoushttp://www.blogger.com/profile/17820105163148774672noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-926886608593755419.post-70363061580927386852010-06-24T11:15:18.865-07:002010-06-24T11:15:18.865-07:00awesome, dave; thanks!awesome, dave; thanks!ionoushttps://www.blogger.com/profile/17820105163148774672noreply@blogger.comtag:blogger.com,1999:blog-926886608593755419.post-7180486298037635412009-11-30T12:12:06.367-08:002009-11-30T12:12:06.367-08:00A faster version of this command:
dir /b /s /a-d ...A faster version of this command:<br /><br />dir /b /s /a-d | p4 -x - add -c [changelist]<br /><br />I often add a relatively large source base to P4 and found that this command is much faster than the one above - it'll complete in about 10 seconds while the command above took a minute to add about 10% of the base.Dave Cunninghamhttps://www.blogger.com/profile/02023580078603810879noreply@blogger.comtag:blogger.com,1999:blog-926886608593755419.post-85323208375677431842009-08-15T16:17:54.220-07:002009-08-15T16:17:54.220-07:00Putting the last %i in quotes allows this command ...Putting the last %i in quotes allows this command to handle paths with spaces in them, otherwise the path files are added to is truncated. <br /><br />for /R [dir] %i in (*.*) do p4 add "%i"<br /><br />Thanks for the command though, saved tons of time opening whole trees of files by hand. :)Samhttps://www.blogger.com/profile/07234873152026419986noreply@blogger.com