Placeholder.

Home Forums PDF24 Online PDF Converter General Placeholder.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #63017
    stianh
    Participant

    Hi I have to run a powershell script after autosaving PDF's to a homefolder. All is wotking it is opening the powershell and user gets the email box but the file is not attached. The old script used PDFCreator with a cmd batch file   here is the ps startup line in the cmd..

    set arg1=%1

    powershell.exe -executionpolicy bypass -noprofile -WindowStyle hidden "& '\\domainshare\PDF2Mail.ps1' -file '%arg1:&=^&%'"

    Then there is a param inside PS script to fetch the filename. IS there a similar way for pdf24. I have tried $file $filename, to no vail. I tried with a dumbed down PS script. I have tried running the script with only powershell -execution bypass -noprofile C:\temp\pdf224.ps1 -file $fileName this gives me the tittle of file.

    Param(

    [string]$file

    )

    Pleacce some help here 🙂

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.