I'm trying to call the GetToNonWorkFolder method and I keep getting an Access Is Denied to "C:\release\scripts" message.
I know that I myself have access to that folder because I am an administrator on my computer, but would it be trying to use a different user to write the file?
Here is my code:
client.GetToNonWorkingFolder(file, true, true, VaultClientOperationsLib.MakeWritableType.MakeAllFilesWritable, VaultClientOperationsLib.SetFileTimeType.Modification, file.FullPath, "C:\\release\\scripts");
Thanks, Greg
GetToNonWorkingFolder Access is Denied error message
Moderator: SourceGear
Was able to create and write to a file in that folder without a problem.
Basically what I am doing is just looping through the folders in the vault looking for any files that have changed within a date range. If I find a file I am trying to save it to another folder. I am logging on using the same user that I normally logon to the vault with.
Any further thoughts?
Thanks for any help you can give.
Greg
Basically what I am doing is just looping through the folders in the vault looking for any files that have changed within a date range. If I find a file I am trying to save it to another folder. I am logging on using the same user that I normally logon to the vault with.
Any further thoughts?
Thanks for any help you can give.
Greg
I think you need to change your second-to-last argument ("file.FullPath"). This should be a folder path, for all of the cases I could imagine. The code in the library takes the path you give here, and replaces any instances of it that it finds in the first argument's path with the string you give for the last argument.
If you wanted to get "file" (full path "$/folder/foo.cs") to "c:\things\foo.cs", you'd call with "file" for the first argument, "$/folder" for the second-to-last, and "c:\things" for the last.
If you wanted to get "file" (full path "$/folder/foo.cs") to "c:\things\foo.cs", you'd call with "file" for the first argument, "$/folder" for the second-to-last, and "c:\things" for the last.
Shaw Terwilliger
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`