Hi All,
My first post !!
I’m looking for an automated way to populate a document library with folders and files that are currently in a regular NT directory structure.
Thanks very much,
Taylor Cassidy
Hi All,
My first post !!
I’m looking for an automated way to populate a document library with folders and files that are currently in a regular NT directory structure.
Thanks very much,
Taylor Cassidy
Subject: Importing entire directory tree
I can get you started, at least:
This form action imports a BMP file into the Body field of the current UI document.
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Call uidoc.GotoField(“Body”)
Call uidoc.Import(“BMP Image”, “c:\Windows\Red Blocks.bmp”)
End Sub
Using the above you want write a script to:
Read filenames (complete address) in an NT directory structure (or from a list you populate) into an array/list.
For each item in the array/list (for each file)
2a. Create a new uidoc
2b. Do the import as shown above
2c. Populate category field with the directory structure (\Windows\Red Blocks.bmp) to give you categories instead of folders…or you can figure out a way to check for a folder and create one if it doesn’t exist.
2d. save uidoc and close
Subject: RE: Importing entire directory tree
Thanks a ton for replying Maria !!
I am very new to scripting and am kind of lost.
I get what you mean about importing the file into the body, but don’t unnderstand the array/list part.
I’ll go through the docs to see if I can figure it out.
Again, thanks for your help.
Cheers,
Taylor.
Subject: Importing entire directory tree
I need to do this also! Maria Helm’s answer is a great start.
Does anyone script to:
Read filenames in a known Windows directory into an array/list??
Or at least – some basic code to start the I/O stuff???
Thanks in advance.