Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/03/2002, 11:14
dimoito
 
Fecha de Ingreso: enero-2002
Mensajes: 120
Antigüedad: 23 años, 4 meses
Puntos: 0
Re: Crea o Eliminar directorio con ASP

Con FSO:
Primero tienes que instanciar el objeto:set objFile = Server.CreateObject("Scripting.FileSystemObje ct")
'Para comprobar si exite:
If Not objFile.FolderExists(MiPath) Then
' Para crear la carpeta:
Set nFolder = objFile.CreateFolder(MiPath)
end if

'Para borrarla:
' Para borrar la carpeta:
Set nFolder = objFile.DeleteFolder(MiPath)