Alternatively the folder is being held open in the right-ghand-side of Explorer
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Brennan Sent: Monday, October 15, 2001 4:27 PM To: Multiple recipients of list delphi Subject: Re: [DUG]: Renaming Folders in Windows Dave, Put a breakpoint in your program at the MoveFile call. Run your program up to that breakpoint so your program is paused just before it. Then try renaming the folder in Windows Explorer. Chances are you will get an error saying sharing violation or that the file is in use. If I'm right then the problem is probably that your program is opening a file inside the folder and then leaving it open. You need to ensure that you close all file handles (and maybe release them?) before you attempt to rename the folder. David Brennan. DB Solutions Ltd. ----- Original Message ----- From: "David O'Brien" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Monday, October 15, 2001 4:10 PM Subject: RE: [DUG]: Renaming Folders in Windows > I can rename it using windows explorer, are there any options I am missing? > File permissions? > > Dave. > > -----Original Message----- > From: Nello Sestini [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 15, 2001 3:58 PM > To: Multiple recipients of list delphi > Subject: Re: [DUG]: Renaming Folders in Windows > > > error 32 is a sharing violation. > > the file is being accessed by another process. > > -ns > > > ----- Original Message ----- > From: "David O'Brien" <[EMAIL PROTECTED]> > To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> > Sent: Monday, October 15, 2001 9:53 AM > Subject: RE: [DUG]: Renaming Folders in Windows > > > > MoveFile returns false, and Getlasterror returns 32. Any idea what that > > means? > > I have tried many combinations of backslashes (with/without). > > > > Dave. > > > > -----Original Message----- > > From: Manning, John [mailto:[EMAIL PROTECTED]] > > Sent: Monday, October 15, 2001 3:28 PM > > To: Multiple recipients of list delphi > > Subject: RE: [DUG]: Renaming Folders in Windows > > > > > > Try the API function MoveFile! > > > > HTH, > > John > > > > -----Original Message----- > > From: David O'Brien [mailto:[EMAIL PROTECTED]] > > Sent: Monday, 15 October 2001 12:27 pm > > To: Multiple recipients of list delphi > > Subject: RE: [DUG]: Renaming Folders in Windows > > > > > > Doesn't appear to work. Any other suggestions? > > > > Dave. > > -------------------------------------------------------------------------- > - > > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > > Website: http://www.delphi.org.nz > > To UnSub, send email to: [EMAIL PROTECTED] > > with body of "unsubscribe delphi" > > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > > -------------------------------------------------------------------------- > - > > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > > Website: http://www.delphi.org.nz > > To UnSub, send email to: [EMAIL PROTECTED] > > with body of "unsubscribe delphi" > > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > > > > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/