This has already been implemented in MapBasic source code using the Windows APIs.
My implementation is not complete because I don't offer the user the ability to create a new folder, but I think that some one did this some time ago - it might have been Bill Thoen (was it you, Bill ?) Another thing that I found useful when creating folders is to be able to create all folders in a given path !! So I created a function that takes a path,, and loops thru the single folders, creating the ones that not already exists. Peter Horsbøll Møller GIS Developer Geographical Information & IT COWI A/S Odensevej 95 DK-5260 Odense S. Denmark Tel +45 6311 4900 Direct +45 6311 4908 Mob +45 5156 1045 Fax +45 6311 4949 E-mail [EMAIL PROTECTED] http://www.cowi.dk -----Original Message----- From: SCISOFT [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 9:04 AM To: 'MapInfo-L' Subject: RE: MI-L Create directory using Mapbasic? Not helpful to Berk, but a comment - What MB is missing is use of the SHBrowseForFolder Windows API - a simple project for someone to wrap this call as a DLL built with C or Delphi. The problem with the API calls suggested so far is that they require the user to know what path they want to create, and that may need a test to see if it already exists. The visual method using the browse for folder is easier to handle. ILT -----Original Message----- From: Berk Charlton [mailto:[EMAIL PROTECTED] Sent: Wednesday, 2 June 2004 6:47 AM To: 'MapInfo-L' Subject: MI-L Create directory using Mapbasic? Hi everybody - Is there a way to create a directory using MapBasic? Thanks, Berk Charlton ========================================== Meridian GeoSystems, Inc. www.meridiangeo.com [EMAIL PROTECTED] ========================================== --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12003 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12004