Re: any way to use the Win32API SHFileOperation by Dan
Dan
Mon Jan 22 14:02:05 CST 2007
Ah, the old "Microsoft recommends..."
You work in VFP and you take their word for it? <g> Most of what they
recommend is because other programming languages don't have things like
VFP's RENAME command (which will also perform a move if the only thing
different is the path).
I understand the rights issue. If you have to crack that nut, then I can see
going the longhand route. But I'd do it with gritted teeth, muttering the
whole time "why am *I* compensating for a network shortcoming?!?!?!?!" <g>
Dan
"Chip Orange" <Chip.Orange@psc.state.fl.us> wrote in message
news:O6wg%23qlPHHA.3872@TK2MSFTNGP06.phx.gbl...
> Thanks Dan.
>
> I found the shell object, which gives me the same capabilities, but in a
> COM interface, so it looks easier to deal with.
>
> I have a network admin who is asking about copying files under Windows and
> forcing the permissions not to be copied.
>
> Right now, we're hitting an odd problem with a Windows server where when a
> file is copied from one location to another on the same volume, it's
> access rights by the users of the AD are not recalculated to reflect it's
> new position and the inherited rights it now possesses. This is a known
> issue with MS.
>
> When investigating this problem, as I am writing a new app, and converting
> others from Netware, I began investigating the ways in which large files
> might be efficiently copied or moved on a Windows server (and being
> mindful of this rights issue I mentioned above).
>
> I did find some documentation in the MSDN which said that SHFileOperation
> is now the prefered method for file operations.
>
> Chip
>
> "Dan Freeman" <spam@microsoft.com> wrote in message
> news:uVETNPkPHHA.1604@TK2MSFTNGP05.phx.gbl...
>> Visit www.universalthread.com and do a library search for STRUCT.VCX
>> (maybe .ZIP). It provides support for structures.
>>
>> But there are so many straight-forward ways to do this without going that
>> route I wonder why you'd want to do it longhand?
>>
>> Dan
>>
>> "Chip Orange" <Chip.Orange@psc.state.fl.us> wrote in message
>> news:OXmwW7jPHHA.2312@TK2MSFTNGP04.phx.gbl...
>>> Is there any way for a VFP app to copy/move a file using the API
>>> SHFileOperation()? It requires a structure as a parameter, and I was
>>> wondering if anyone knew of a way to do this from VFP?
>>>
>>> Thanks.
>>>
>>> Chip
>>>
>>>
>>>
>>
>>
>
>