{"id":98,"date":"2009-01-12T11:43:29","date_gmt":"2009-01-12T11:43:29","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2009\/01\/12\/batch-script-to-login-and-sync-the-files-from-perforce\/"},"modified":"2025-02-01T22:39:44","modified_gmt":"2025-02-01T22:39:44","slug":"batch-script-to-login-and-sync-the-files-from-perforce","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/batch-script-to-login-and-sync-the-files-from-perforce\/","title":{"rendered":"Batch Script to Login and sync the files from perforce | Step by step guide"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3646 aligncenter\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/01\/batch-script-to-login-and-s.png\" alt=\"batch-script-to-login-and-sync-the-files-from-perforce\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2009\/01\/batch-script-to-login-and-s.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2009\/01\/batch-script-to-login-and-s-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><strong>Batch Script to Login Perforce server using command line<\/strong><\/p>\n<p><strong>Step 1: <\/strong>Create a new text file<br \/>\n<strong>Step2: <\/strong>Copy following command<br \/>\n%path%<br \/>\n@echo on<br \/>\np4 -p172.28.16.2:1666 -uUserName -P&#8221;Password&#8221; -c&#8221;Client_Name&#8221; client \u2013o<\/p>\n<p>Where<br \/>\nUserName is User name of perforce server<br \/>\nPassword is Password of the perforce server.<br \/>\nClient_Name is the existing perforce client<\/p>\n<p><strong>Step3: <\/strong>Save with .bat extension<\/p>\n<p><strong>Step4:<\/strong> Run the batch file<\/p>\n<p><strong>Batch Script to Login and sync the files from perforce view<\/strong><\/p>\n<p><strong>Step 1: <\/strong>Create a new text file<br \/>\n<strong>Step2: <\/strong>Copy following command<br \/>\n@echo off<br \/>\np4 -c Client_Name -p 172.28.16.2:1666 -u UserName-P Password sync -f \/\/SEABU\/LiveStateDelivery\/LSDMaintenance\/Components\/Webadmin\/&#8230; \/\/SYSTEMBUILDSTAR\/LiveStateDelivery\/LSDMaintenance\/Components\/Webadmin\/&#8230;<\/p>\n<p>Where<br \/>\nUserName is User name of perforce server<br \/>\nPassword is Password of the perforce server.<br \/>\nClient_Name is the existing perforce client<\/p>\n<p><strong>Step3:<\/strong> Save with .bat extension<\/p>\n<p><strong>Step4:<\/strong> Run the batch file<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Batch Script to Login Perforce server using command line Step 1: Create a new text file Step2: Copy following command %path% @echo on p4 -p172.28.16.2:1666 -uUserName -P&#8221;Password&#8221; -c&#8221;Client_Name&#8221; client \u2013o&#8230; <\/p>\n","protected":false},"author":1,"featured_media":3646,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[370],"tags":[1966,1965,1916,1967,824,273,1122,545,897,373,1969,1968,732,1912,213,1452],"class_list":["post-98","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-perforce","tag-batch-command","tag-batch-file-login","tag-batch-script","tag-batch-script-to-login-perforce-server","tag-command-line","tag-files","tag-guide","tag-how","tag-login","tag-perforce","tag-perforce-server-login-by-using-command-line","tag-porcess","tag-steps","tag-sync","tag-tutorial","tag-ways"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=98"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":3648,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/98\/revisions\/3648"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/3646"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}