Probleme mit AUTO_SAVE (obwohl disabled!)

  • hi zusammen,


    haben hier bei einem kunden das problem, das obwohl autosave ausgeschaltet ist immer brav eine as_username.nsf angelegt wird. und die belegt auch noch gleich jede menge platz. haben jetzt im terminate der bookmark einfach folgendes script eingebaut, das zumindest die dateigrösse wieder entsprechend verkleinert:



    Dim s As New NotesSession
    Dim autosave As NotesDatabase
    Dim nname As NotesName

    Dim directory As String
    Dim as_fileName As String

    '//init
    Set nname = New NotesName(s.UserName)

    directory = s.GetEnvironmentString("Directory", True)
    as_fileName = s.GetEnvironmentString("AUTO_SAVE_USER," & nname.Abbreviated, True)

    If (as_fileName = "") Then

    Print "no AUTO_SAVE available"
    Exit Sub

    End If

    If (Dir$(directory & "\" & as_fileName) <> "") Then

    Print "get AUTO_SAVE '" & as_fileName & "'"
    Set autosave = s.GetDatabase("", as_fileName)

    Print "compact AUTO_SAVE '" & as_fileName & "'"
    Call autosave.Compact()

    End If

    bunt ist das dasein und granatenstark. volle kanne hoshi's!


    IBM Certified Advanced System Administrator (R5, D6, D7)
    IBM Certified Advanced Application Developer (R5, D6, D7, D8)

  • Wenn kein Autosave gewünscht ist, warum löschst du nicht einfach das Template weg?

    Life is not a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming "Wow, what a ride!!! :evil:
    Beschleunigung ist, wenn die Tränen der Ergriffenheit waagrecht zum Ohr hin abfliessen - Walter Röhrl

  • weil er dann meckert das es nicht da ist ... (habs nicht selber probiert -> info vom kunden)

    bunt ist das dasein und granatenstark. volle kanne hoshi's!


    IBM Certified Advanced System Administrator (R5, D6, D7)
    IBM Certified Advanced Application Developer (R5, D6, D7, D8)