I'm
confused. I've been told by our Network Admin that you can't rename a locked
dll, as it's the same as deleting it. Yet I've just proved I can do
it!
I went
into a DLL (policy maintenance) and started flicking round subforms, then
renamed the dll while still in it, and did some updating in the policy screen,
then exited policy maint without a problem. When I tried deleting the renamed
file (while the dll was running - under the old name?), it said there was a
sharing violation and wouldn't let me. So it knew I'd renamed a locked
file. The network guy tells me the server I'm doing this on is NT4 - and he says
what I'm doing CAN'T be done!
Jason,
in regard to renaming a locked folder, if you don't find a Windows call to
determine if your folder is locked (and I assume there must be one), then you
could always make a copy of the folder with your new name, then try deleting the
original folder. If deleting the original works, then fine, if not, then
something's using it, in which case you could delete the copy you made and
thereby know you shouldn't rename it. Convoluted way of doing it - better if you
can find the Windows call.
Dave
|
- [DUG]: Check if file is locked? Jason Coley
- [DUG]: How do you explain this? Deck
- Re: [DUG]: How do you explain this? Jeremy North
- Re: [DUG]: How do you explain this? Deck
- Re: [DUG]: How do you explain this? Phil Middlemiss
- [DUG]: Check if file is locked? Jason Coley
- RE: [DUG]: Check if file is locked? Conor Boyd
- RE: [DUG]: Check if file is locked? Dave . Jollie
- Re: [DUG]: Check if file is locked? Paul Mckenzie
- RE: [DUG]: Check if file is locked? Steve Aish
- RE: [DUG]: Check if file is locked? Dave . Jollie
- RE: [DUG]: Check if file is locked? Myles Penlington
- RE: RE: [DUG]: Check if file is locked? Jason Coley
- [DUG]: Sending a record to a C++ DLL Phil Middlemiss
- Re: [DUG]: Sending a record to a C++ DLL Corey Murtagh
- Re: [DUG]: Sending a record to a C++ DL... Phil Middlemiss
- RE: RE: RE: [DUG]: Check if file is locked? Jason Coley
- RE: RE: RE: [DUG]: Check if file is locked? Myles Penlington