Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Copy -- Permission Denied

Status
Not open for further replies.

mbro

Programmer
Nov 12, 2004
25
0
0
US
Hi I've created a routine that works on about 20 computers in the office. This routine among other things closes a file, and uses the FileCopy command to copy the file to a new pathname.

On some of the computers this action will result in a "Permission Denied" error, but not on all computers.

Can someone help diagnose the problem and offer a possible solution. I can't quite understand what is going on. The file being closed/copied is an Autocad DWG.

Cheers,
Mike
 
Is it on a network share? Is it possible that someone else has the file open at the same time? Is it being copied to a network share? Does the logged on user have rights where it is being copied to? Is it overwriting an existing file? If so, is it possible that someone else has the file open?

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
It does involve copying onto a network and the new file will not already exist.

All of the users should have the exact same read/write permission to the network.

It seems to be a problem that's computer specific, that's why it's puzzling
 
Scratch that it seems to be "drawing" specific not user specific.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top