How do you call multiple files from command line i

2019-06-20 09:51发布

问题:

I'm adding a Context Menu Item to the windows registry so when I click on a file I can call my application and have that file be set to my application as an arg. But how can I do this with to have multiple files be send to my application (all the files I have selected)?

right now I have the command as:

"C:/test.dll" "%1"

But this seems to call in each file separately. what's the command to throw in all the files that I have selected?

回答1:

Use "%*" to pass all the elements from the command line to another app.