Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Creating Folder


Message #1 by "Nicolas Raitman" <new_world@r...> on Fri, 22 Sep 2000 21:55:03 -0300
I have had mixed results with api calls.  Even though I was following Dan
Appleman's advice from his book guide to the win32 api, I still had
unexplained lockups and crashes.  I use API's when there is no other way to
accomplish something.  If I can make it work using standard vb commands, I
tend to go that way.

HTH
Kevin

-----Original Message-----
From: Nicolas Raitman [mailto:new_world@r...]
Sent: Tuesday, September 26, 2000 11:40 AM
To: professional vb
Subject: [pro_vb] RE: Creating Folder


why not?

-----Mensaje original-----
De: Kevin Stone <kstone@p...>
Para: professional vb <pro_vb@p...>
Fecha: Martes, 26 de Septiembre de 2000 08:49 a.m.
Asunto: [pro_vb] RE: Creating Folder


>Nicholas,
> I wouldn't use API's to create a directory.  I would use the
>following code.
>
> Dim MyFile As String
> MyFile = Dir("C:\Program Files\My Program", vbDirectory)
>            If Len(MyFile) = 0 Then
>                MkDir ("C:\Program Files\My Program")
>            End If
>HTH
>Kevin
>
>-----Original Message-----
>From: Nicolas Raitman [mailto:new_world@r...]
>Sent: Friday, September 22, 2000 8:55 PM
>To: professional vb
>Subject: [pro_vb] Creating Folder
>
>
>Hi. I am need to create a folder the application directory only once. Do
not
>care about this because I will handle all this situation with the registry.
>I only have one question... ho do you create a folder?
>
>I have been finding out and I have found the FileSystemObject in order to
>work with folders, however, it was not to attractive to me, is there any
>API's in order to create a folder and then access to it to write files? If
>not, which other method can I use? If there are can you give me the name of
>the API's and some examples.
>
>Thanks a lot,
>Nicolas
>


  Return to Index