Re: Moving folders with SHFileOperation
From: Vertuas (vertuas_at_[nospam)
Date: 03/10/05
- Next message: MarCO: "Re: Need help"
- Previous message: Martin Harvey (Demon account): "Re: Need help"
- In reply to: Tom de Neef: "Re: Moving folders with SHFileOperation"
- Next in thread: Bruce Roberts: "Re: Moving folders with SHFileOperation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 10 Mar 2005 00:32:34 GMT
"Tom de Neef" <tdeneef@qolor.nl> wrote in message
news:422f649a$0$28978$e4fe514c@news.xs4all.nl...
> "Vertuas" <vertuas@[nospam]callistocs.freeserve.co.uk> schreef in bericht
> news:b6IXd.235$ox4.212@newsfe4-gui.ntli.net...
> > Hi eveeryone,
> >
> > ShFileperation() is causing me great problems at the moment. my
> > application
> > has to export its data folders to a USB hard disk or flash disk for
backup
> > purposes.
> >
> > I am trying ito achieve this using ShFileOperation
> >
> > my application checks the size fo the folder, by iterating subfolders
and
> > files, to ensure that it fits on the drive before attempting to copy.
> > This
> > works fine.
> >
> > THe folders seam to copy alright, but windows cannot remove the source
> > folder as it says it is in use by another program or person (???!!!??).
> >
>
> Could it be that that 'other process' is your own application? That the OS
> hasn't yet finalized the copy operation and thus keeps the folder locked.
> Maybe there is a message to actually remove such a lock.
> Just an idea: what happens when you insert a sleep before the remove
> statement?
>
> Tom
>
>
Hello Tom,
I am using shfileoperation with FO_MOVE. there is no remove statement as
such as it is part of what windows does
always hated Shfileoperation but short of iterating and copying every file
in every folder manually, i can't see any other alternative.
Kind regards
Vertuas
- Next message: MarCO: "Re: Need help"
- Previous message: Martin Harvey (Demon account): "Re: Need help"
- In reply to: Tom de Neef: "Re: Moving folders with SHFileOperation"
- Next in thread: Bruce Roberts: "Re: Moving folders with SHFileOperation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|