{"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":"2021-02-27T09:55:54","modified_gmt":"2021-02-27T09:55:54","slug":"batch-script-to-login-and-sync-the-files-from-perforce","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/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=\"https:\/\/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.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/01\/batch-script-to-login-and-s.png 600w, https:\/\/www.scmgalaxy.com\/tutorials\/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 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":3646,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[18,22],"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-batch-scripting","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"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Batch Script to Login and sync the files from perforce | Step by step guide - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Batch Script to Login and sync the files from perforce | Step by step guide - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Batch Script to Login Perforce server using command line Step 1: Create a new text file Step2: Copy following command [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2009-01-12T11:43:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:55:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/01\/batch-script-to-login-and-s.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"scmgalaxy K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"scmgalaxy K\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/batch-script-to-login-and-sync-the-files-from-perforce\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/batch-script-to-login-and-sync-the-files-from-perforce\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"Batch Script to Login and sync the files from perforce | Step by step guide\",\"datePublished\":\"2009-01-12T11:43:29+00:00\",\"dateModified\":\"2021-02-27T09:55:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/batch-script-to-login-and-sync-the-files-from-perforce\\\/\"},\"wordCount\":153,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/batch-script-to-login-and-sync-the-files-from-perforce\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2009\\\/01\\\/batch-script-to-login-and-s.png\",\"keywords\":[\"Batch Command\",\"Batch File Login\",\"Batch Script\",\"Batch Script to Login Perforce server\",\"Command line\",\"files\",\"Guide\",\"How\",\"Login\",\"Perforce\",\"Perforce server login by using command line\",\"Porcess\",\"Steps\",\"sync\",\"Tutorial\",\"Ways\"],\"articleSection\":[\"Batch Scripting\",\"Perforce\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/batch-script-to-login-and-sync-the-files-from-perforce\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/batch-script-to-login-and-sync-the-files-from-perforce\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/batch-script-to-login-and-sync-the-files-from-perforce\\\/\",\"name\":\"Batch Script to Login and sync the files from perforce | Step by step guide - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/batch-script-to-login-and-sync-the-files-from-perforce\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/batch-script-to-login-and-sync-the-files-from-perforce\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2009\\\/01\\\/batch-script-to-login-and-s.png\",\"datePublished\":\"2009-01-12T11:43:29+00:00\",\"dateModified\":\"2021-02-27T09:55:54+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/batch-script-to-login-and-sync-the-files-from-perforce\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/batch-script-to-login-and-sync-the-files-from-perforce\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/batch-script-to-login-and-sync-the-files-from-perforce\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2009\\\/01\\\/batch-script-to-login-and-s.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2009\\\/01\\\/batch-script-to-login-and-s.png\",\"width\":600,\"height\":400,\"caption\":\"batch-script-to-login-and-sync-the-files-from-perforce\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/batch-script-to-login-and-sync-the-files-from-perforce\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Batch Script to Login and sync the files from perforce | Step by step guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\",\"name\":\"scmgalaxy K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"caption\":\"scmgalaxy K\"},\"sameAs\":[\"http:\\\/\\\/www.DevOpsSchool.com\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/scmgalaxy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Batch Script to Login and sync the files from perforce | Step by step guide - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/","og_locale":"en_US","og_type":"article","og_title":"Batch Script to Login and sync the files from perforce | Step by step guide - scmGalaxy","og_description":"Batch Script to Login Perforce server using command line Step 1: Create a new text file Step2: Copy following command [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/","og_site_name":"scmGalaxy","article_published_time":"2009-01-12T11:43:29+00:00","article_modified_time":"2021-02-27T09:55:54+00:00","og_image":[{"width":600,"height":400,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/01\/batch-script-to-login-and-s.png","type":"image\/png"}],"author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"Batch Script to Login and sync the files from perforce | Step by step guide","datePublished":"2009-01-12T11:43:29+00:00","dateModified":"2021-02-27T09:55:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/"},"wordCount":153,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/01\/batch-script-to-login-and-s.png","keywords":["Batch Command","Batch File Login","Batch Script","Batch Script to Login Perforce server","Command line","files","Guide","How","Login","Perforce","Perforce server login by using command line","Porcess","Steps","sync","Tutorial","Ways"],"articleSection":["Batch Scripting","Perforce"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/","name":"Batch Script to Login and sync the files from perforce | Step by step guide - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/01\/batch-script-to-login-and-s.png","datePublished":"2009-01-12T11:43:29+00:00","dateModified":"2021-02-27T09:55:54+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/01\/batch-script-to-login-and-s.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/01\/batch-script-to-login-and-s.png","width":600,"height":400,"caption":"batch-script-to-login-and-sync-the-files-from-perforce"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/batch-script-to-login-and-sync-the-files-from-perforce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Batch Script to Login and sync the files from perforce | Step by step guide"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102","name":"scmgalaxy K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","caption":"scmgalaxy K"},"sameAs":["http:\/\/www.DevOpsSchool.com"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/scmgalaxy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=98"}],"version-history":[{"count":2,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":3648,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/98\/revisions\/3648"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/3646"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}