Reputation: 1
I use LANDesk for managing the devices in my company. This tool is great but it lacks te possibility to e-mail the device owner.
Therefore I created a right-click option called "Sent e-mail". This option executes a bat file. The e-mail adress is the commandline parameter.
If I select lets say 50 devices, the batch file will be executed 50 times. This is annoying, does anyone know how redirect all 50 ex
Upvotes: 0
Views: 104
Reputation: 316
I do not catch where is the problem to send 50 or more arguments to your batch file. If the question is how to loop through multiple and variable amount of arguments, then:
FOR %%A IN (%*) DO (
REM --Code goes here--
ECHO %%A
)
I hope this helps.
Upvotes: 1