Bruce Momjian wrote: > Merlin Moncure wrote: > > > > I'll check why the rmdir command is not working as expected. > > > > > > I just poked around and couldn't figure out the cause. Initdb should > > > either remove the directory if it created it, or remove everything > > _in_ > > > the directory if the directory already existed. I tried the rmdir/del > > > /s /q commands in a CMD window and it worked fine. > > > > Problem is backslash issue :) initdb is issuing del /s /q > > "c:/postgres/data". > > > > Is there a library command to properly resolve slashes? > > Uh, I just testd this using CMD and it worked:
Yes, you are correct, I was jumping to conclusions. What's really strange is now initdb is properly cleaning up the folders. I examined my previous logs and apparently the value of rmtopdir parameter to rmtree was wrong... Note my previous initdb log said removing contents of ... (now says removing ...) Some more checking turns out it is all hooking on the return val of check_data_dir...perhaps the condition was hooking if I had the folder open in another window...so no worries there. Still having the problems with initdb. Merlin ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly