How do I map files in a depot as a local drive.
Basically I want to be able to browse the files in the depot using cygwin, just like I do it for a local drive.
I tried several options but none of them worked.
Map the path \sw\src... as a Mapped Network drive in windows. But as expected this doesnt work since perforce is client-serve based.
I can browse using URL http://p4viewer/get//sw/src in a webbrowser.
But I cant open it in cygwin. Is there any tool that allows to map a
URL as a local drive ?
Could you not just create a local work space? Then the files would be on your local drive and you could treat them as any other file on your workstation.
Related
I was able to map my sharepoint drive on my local computer (Note: this was not using the sync option on sharepoint, as I do not have access to do so). I am able to create new folders, however I am unable to rename it. When I try to rename the folder, I get the following message, regardless of how many characters I put:
I can change the file name from the sharepoint web portal, but not on my mapped network drive.
I am using Windows 10
I don't know if it's the same problem, but this guy got the same error message when he mapped the drive using a / at the end of the URL.
(i.e. he solved remapping: https://hostname.domain.com/Shared Documents
instead of: https://hostname.domain.com/Shared Documents/ )
I have a network mounted drive and as a result if I right click anywhere it hangs for awhile. this is because TortoiseSVN is trying to read the local .svn repo. Is there a way that I can prevent this from ever happening for certain local repos? Say perhaps I can have TortoiseSVN not open for files under the W:\ drive?
The icon overlays are already turned off (by default) because W:\ is a network drive. But when I right click anywhere I can see a large file transfer occur for the .svn folder everytime.
Well this was easy to find via the settings. I just assumed it wasn't there initially but for such an established program it makes sense that this would already be a feature:
I have two computers: Work, and Home.
My workspace in my Work Laptop is synced in a Dropbox. That's why I could access my work at home.
But when I try to setup my Perforce at home, I don't know how to link or detect that I have an existing workspace in my Dropbox.
How?
First, I'll assume you can access your Perforce server from home, since you don't mention this in your problem statement.
Next, I'll assume you're able to use the same directory structure at home that you use at work (e.g. C:\Dropbox\projx).
When you create your client spec at work, be sure to edit out the HOST: line, since you'll be using it on two machines.
Use the same client name at home that you use at work.
If for some reason you are unable to use the same directory structure on both machines, you may have to use "p4 client" to change the ROOT: line of your client spec every time you switch between home and work.
Alternatively, you could use two different clients, and use "p4 shelve" to move files to the server when you're done for the day.
You basically just need to tell Perforce the name of your client. Usually you'll do this by adding a .p4config file in your Perforce client's root directory (or in one of its parent directories) that contains the line:
P4CLIENT=your-perforce-client-name
You might also need to add an environment variable that points to this file: P4CONFIG=.p4config.
If the local path to your client's root is different between your work and home machines, you'll also need to set AltRoots in your Perforce client specification and add the path for your home machine.
As part of a larger batch script, I need to copy a directory from a TFS SharePoint site down on to the local drive. So something like:
copy "http://mySharePointSite/sites/MyProjectCollection/MyTeamProject/Shared Documents/Some Folder" C:\Temp
Any ideas how I would do this?
Thanks!
If you have local network access to the machine running SharePoint, you can use a UNC path to access the files directly.
\\servername\sitename\library\
The sitename is only used if you're actually accessing a sub site, otherwise it's just \\servername\library\
The path may be slightly different for team projects, but you should be able to find the correct path by browsing to it in Explorer.
I am unable to create a directory in a mapped drive. e.g. i have mapped U: to some location which there in the network. Using vc++ i am using CreateDirectory api, but it's not able to create directories. If i am giving any local machine location, it's creating. any solutions. Please let me know.
I have tried debugging my application, i find out that while running window service it's not creating but through debugging it's creating.
NOTE:
the location i want to create directory have full permissions.
It looks like the drive mapping to U: is not visible from your service. That's expected, since drive mappings are usually established per-user or per-session.
However, CreateDirectory() supports UNC paths, so you can pass \\server\share\path directly instead of using a mapped drive.