Hi Ellen
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)
Peter Laulund
National Survey and Cadastre, Denmark
Ellen Cyran <[EMAIL PROTECTED]> - 09-03-99 17:16:56
Til: [EMAIL PROTECTED]
cc: (bcc: Peter Laulund/MI/KMS)
Vedr�rende: MI mkdir From MapBasic 4.5
I'm am trying to make a directory from within Mapbasic.
I have tried the following from both WinNT4 and Win95:
run program "command.com /c mkdir c:\mapinfo\files"
and no directory is created in either case.
run program "command.com /c dir c:\mapinfo\ > c:temp\dirlist.txt"
only works properly in win95 and not NT.
Does run program not work in winNT?
Does anyone have a way to create a directory from MapBasic?
Thanks.
Ellen Cyran
Senior Programmer/Analyst
Levin College of Urban Affairs
Cleveland State University
[EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]