cigarnax.blogg.se

Pass parameters to shortcut command line
Pass parameters to shortcut command line






I do not want to use the option to set a golbal variable, neither to save that parameter on a file, etc.Īctually i am trying with full qualified START command inside another batch: OFF So how can i pass a parameter that has spaces? like a path, a filename, etc.

  • It does not even run the Batch file if parameter contains ".
  • It runs the Batch file if parameter does not contains ".
  • lnk (shortcut) with start it happens two things: That batch file (for testing) can be as simple as this: OFF if the LNK has some parameter, the parameters on START are added after the LNK ones (tested).

    pass parameters to shortcut command line

    worst that parameters are variable and if you put any parameter on the LNK it is treated as a literal. And yes, shortcuts passes the parameters to the application / batch they point to, so no need to add parameters on the LNK it self. That shortcut points to a batch file and has set on the tick for run with admins rights.

    pass parameters to shortcut command line

    From a command line, run a shortcut and pass parameters to it.I want to know how to do just what title says "How to open a shortcut with windows command line and parameters".








    Pass parameters to shortcut command line