Extracting attachments to different folders in C drive

Hi,

I need to extract attachments from all documents and need to create different folders based on business rules and put the attachemnt in the corresponding folders. How to create folder at OS level using lotus script? Thanks in advance for your help.

Regards

Subject: RE: Extracting attachments to different folders in C drive

Hi, Use File System Object (FSO) to Create Folders.

Here is the code to create folder using the FSO.

Function CreateFolder(FolderPath As String) As Integer

On Error Goto Error_Exit

Dim fso As Variant

Set fso=createobject("Scripting.FileSystemObject") 

fso.CreateFolder (FolderPath)

CreateFolder = True

Goto Ok_Exit

Error_Exit:

Print "Error : "+Error$ +" at line no "+Cstr(Erl)+" in Create Folder function"

CreateFolder = False

Resume Ok_Exit

Ok_Exit:

End Function

'==>Calling the Create Folder fun to Create Folder

Call CreateFolder(“C:\SampleFolder”)

Go to Google site and type “File System Object” for more information

Cheers,

Murugavel E

Subject: Extracting attachments to different folders in C drive

mkdir statement