MI-L is it possible to create a new folder thro' map basic

2001-12-11 Thread sreejit n
dear listers, is it possible to create a new folder in a directory through a mapbasic program ? Actually i am writting one program where i comfront with this problem actually i want to save .TAB file in d:\ not directly but in some folder and i want that folder to be created by itself as

Re: MI-L is it possible to create a new folder thro' map basic

2001-12-11 Thread Laurence Seeff
Hi, Declare Function CreateDirectory lib kernel32.dll Alias = CreateDirectoryA (ByVal Path As String, ByVal lpsa As Integer) As = Integer 'determine path and new directory into variable name eg. = backup_path=3Dc:\backup r =3D CreateDirectory(backup_path, 0) If r=3D0 then Print New

SV: MI-L is it possible to create a new folder thro' map basic

2001-12-11 Thread Thomas Brix Lyng
You can use the window API function CreateDirectory() Declare Function CreateDirectory lib kernel32.dll Alias CreateDirectoryA (ByVal Path As String, ByVal lpsa As Integer) As Integer Dim iNull as integer iNull = CreateDirectory(NewDir,0) Regards Thomas Brix Lyng Frederikshavn