VFP's MD will create the whole level from one command. IF NOT DIRECTORY(targetDirectory) MD (targetDirectory) ENDIF
Tracy > -----Original Message----- > From: Nick > Sent: Friday, September 01, 2006 9:26 AM > Subject: RE: Move directories > > > Sietse Wijnker wrote: > > > > Here's something I cooked up while waiting for a convert-program > > running: > > > > It uses the SHFileOperation API which is also used when > dragging files > > from one folder to another in winexplorer. > > > > Regards, > > Sietse Wijnker > > Thanks for that Sietse, this is the nearest I have been to > having a fully working example. > > The only problem I have with this is that it errors if all > the directories in the To path do not exist. I assumed that > they would simply be created but that does not appear to be the case. > > For example: > lcFrom = "\\Server\Data\Documents\Test" > lcTo = "\\Server\Archive\Data\Documents\Test" > Will fail unless the > \\Server\Archive > \\Server\Archive\Data > \\Server\Archive\Data\Documents > Directories are first created > > Cheers, > Nick _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

