• Hi Rolf,

    after reading what php fopen() does, I think the FileSystemObject might be equivalent to it.

    I'm not sure if this will work on a remote site, but you can use an ActiveX Script Task with this script. I've found this in MSDN

    '**********************************************************************

    ' Visual Basic ActiveX Script

    '************************************************************************

    Function Main()

    Const ForReading = 1, ForWriting = 2, ForAppending = 8

    Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0

    Dim fso, f, ts

    Set fso = CreateObject("Scripting.FileSystemObject")

    fso.CreateTextFile "test1.txt" ' Create a file.

    Set f = fso.GetFile("test1.txt")

    Set ts = f.OpenAsTextStream(ForWriting, TristateUseDefault)

    ts.Write "Hello World"

    ts.Close

    Set ts = f.OpenAsTextStream(ForReading, TristateUseDefault)

    TextStreamTest = ts.ReadLine

    ts.Close

    End Function

    Another way might be using the ShellExecute API function

    void CLaunchIEDlg::OnOK()

    {

    CWnd::UpdateData(TRUE);

    //LPCTSTR lpszPath = "C:\\PROGRAMME\\PLUS!\\MICROSOFT INTERNET\\Iexplore.exe ";

    LPCTSTR lpszPath = "Iexplore";

    LPCTSTR lpszSite = m_Site;

    ShellExecute(NULL, "open", lpszPath, lpszSite, NULL, SW_SHOWNORMAL );

    EndDialog(1);

    return;

    }

    Sorry, only in C++. but ShellExecute is well documented and works also with VB.

    HTH

    Cheers,

    Frank

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Webmaster: http://www.insidesql.org/blogs
    My blog: http://www.insidesql.org/blogs/frankkalis/[/url]