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). 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. 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".
0 Comments
Leave a Reply. |