Run command line step with multiple lines

Hey I'm sure this is a simple question but I could find an answer to it on the forum or KBs. 

I'm trying to run multiple commands in order as part of a PDQ Deploy command line package. 

Is this the correct way to do it? I'm trying to set a KMS host for Microsoft Office 2013 Standard activation, then run the activate command with cscript and OSPP.VBS. 

CD "\Program Files (x86)\Microsoft Office\Office15"
cscript OSPP.VBS /sethst:"servername"
cscript OSPP.VBS /act



Date Votes
  • Looks like they made a video just for you! (And everyone else with the same question)


  • Hey awesome good timing! So that works for me. This now brings me to a follow-up question, and maybe this is more of a cmd question than a PDQ question, but now I want to customize my UltraVNC installer so that it will copy the ultravnc.ini settings file after installing UltraVNC. 

    I tried including the ultravnc.ini file in the install, and tried this command, but it keeps failing. What am I doing wrong?

    Step to copy ultravnc.ini to install directory and overwrite whatever is there:

    copy ultravnc.ini "C:\program files\uvnc bvba\UltraVNC\ultravnc.ini"

  • You can comment in multiple lines using triple quotes.


    ‘’’ here we are

    assigning a value 5 to a’’’

    The very first Multiple line comment appears inside a function/class is a docstring. Docstring usually used at the beginning of a class, function etc.

    Docstring gives simple description of a function or class etc.

    It's you who gives a description of a function.

    It will be helpful why because if you check your python file after a long time you will not understand what the functions are actually doing. If you have used docstring in your functions, you will get basic idea of your functions even if you check after a long time.

    Then how to know the docstring used in a function
    Read more



Please sign in to leave a comment.

Didn't find what you were looking for?

New post