Hi all,
Using Workflow, I make a script to copy a file from LF to my Windows.
This is my script
namespace WorkflowActivity.Scripting.Script
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Data.SqlClient;
    using System.Text;
    using Laserfiche.DocumentServices;
    using Laserfiche.RepositoryAccess;
    /// <summary>
    /// Offre une ou plusieurs méthodes qui peuvent être exécutées au moment de l'exécution de l'activité de scriptage du flux de travail.
    /// </summary>
    public class Script1 : RAScriptClass102
    {
        /// <summary>
        /// Cette méthode est exécutée quand l'activité est effectuée.
        /// </summary>
        protected override void Execute()
        {
                                    //ISHARING
                                    Laserfiche.DocumentServices.DocumentExporter DocEx = new Laserfiche.DocumentServices.DocumentExporter();
                                    DocumentInfo DI = Document.GetDocumentInfo(this.BoundEntryId, RASession);
                                    DocEx.ExportElecDoc(DI, Convert.ToString(GetTokenValue("Fichier")));
        }
    }
}
Now I want to past this file to my NAS. I should login-on first but I don't know how to write it in my C#.
I read somewhere I should use logonuser but I don't really know how to do.
I'm not pretty good with SDK.
Someone can help?
Thanks in advance
Regards