Hi Dougie,
The following is the code for the activex script:
START CODE
'**********************************************************************
' Visual Basic ActiveX Script
'************************************************************************
Function Main()
'declare variables
dim expect_path, tempPath, txtPath 'various paths: expected path (global variable), path and file name, from the text file
dim txtDB 'database name from text file
dim fso, f1, textstream 'objects for reading the text file
dim oConn 'connection object for the text file
dim stat 'status of package (success or fail)
'set up variables for use
expect_path = DTSGlobalVariables("the_path"

.value
set fso = createobject("scripting.filesystemobject"
'check the existance of the file path.txt
tempPath = expect_path +"path.txt"
IF (fso.FileExists(tempPath)) THEN
set f1 = fso.getfile(tempPath)
set textstream = f1.openastextstream
txtPath = textstream.ReadLine + "data\"
else
stat = DTSTaskExecResult_Failure
end if
'check the existance of the file database.txt
tempPath = expect_path + "database.txt"
IF (fso.FileExists(tempPath)) THEN
set f1 = fso.getfile(tempPath)
set textstream = f1.openastextstream
txtDB = textstream.ReadLine
else
stat = DTSTaskExecResult_Failure
end if
if stat <> DTSTaskExecResult_Failure then
'change the name and location of the databases
Set oConn = DTSGlobalVariables.Parent.Connections("Microsoft Access"

oConn.DataSource = txtPath + txtDB
Set oConn = DTSGlobalVariables.Parent.Connections("Microsoft Access 2"

oConn.DataSource = txtPath +txtDB
Set oConn = DTSGlobalVariables.Parent.Connections("Microsoft Access 3"

oConn.DataSource = txtPath +txtDB
'report task success
stat = DTSTaskExecResult_Success
end if
Main = stat
End Function
END CODE **************************************************************
Rock is Dead (Long Live Paper and Scissors)**************************************************************