Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8117581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:13:13+00:00 2026-06-06T04:13:13+00:00

I have searched the internet and the perforce help pages, but couldn’t find a

  • 0

I have searched the internet and the perforce help pages, but couldn’t find a solution to my problem.

In a script, so on the commandline, I want to change my workspace view map. For example:

//depot/some/branch/myfolder/mysubfolder/… /home/myuser/perforce/branch/myfolder/myworkspace/…
to
//depot/some/branch/… /home/myuser/perforce/branch/…

I cannot figure out what command to use. Can you help me out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:13:15+00:00Added an answer on June 6, 2026 at 4:13 am

    You’ll need to use the p4 client command. You can script that using the -i and -o options, which let you interact with the workspace form via STDIN and STDOUT.

    An easier path is using a scripting API like P4Python:

    cspec = p4.fetch_client('my_ws_name')
    view = ["//depot/some/branch/... /home/myuser/perforce/branch/..."]
    cspec["View"] = view
    p4.save_client(cspec)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have searched for a general solution to this but only find answers to
I have searched the Internet, but I can't find the info I'm looking for.
I have searched the internet, but could not find any convincing answers; Are the
I have searched far and wide on the Internet but have not found anything
I have searched all morning and yesterday afternoon and still cannot find an solution
I have searched internet and stackoverflow thoroughly, but I haven't found answer to my
I have searched the Internet and I can't seem to find anything related to
I have searched the Internet and stackoverflow.com, but got nothing. Who can give me
I have searched the internet and the Boost serialization docs and I cannot find
I have searched the Internet and SO for over a week, but have not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.