Copy Permission issue

P

Patrick Temple

I'm having a serious issue with permissions and File.Copy(string); command.

I tool has a need to move the xml files around from one library to another.
I do this with File.copy and File.Delete commands in jscript. The
File.Delete works fine but the File.Copy is giving me problems. It works
perfectly for me and one other individual but errors out for everyone else.
I assumed it had to do with permission levels set in Sharepoint. I and the
other individual are admins. However, I spent most of the day playing with
permissions to no avail. I even gave everyone admin privaleges and still no
luck. So not sure whats going on. Here is the copy code I'm using.

//Set the event Object
Error occurs here --> eventObj = new
ActiveXObject("Scripting.FileSystemObject");
//Get Detail doc template and copy file
detaildocfile =
eventObj.GetFile("//ljpl.boi.hp.com/requirements/Templates/FeatureTemplate.doc");
ddpathName = "//ljpl.boi.hp.com/requirements/DetailDocs/" + docfolder +
refstrID + ".doc";
//XDocument.UI.Alert(ddpathName);
Error initially occured here -->detaildocfile.copy(ddpathName);

I need to get this figured out fairly quickly so any help would be
appreciated.

Thanks

--Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top