0

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

4

1 回答 1

1

我不知道向批处理文件发送 50 个或更多参数的问题出在哪里。如果问题是如何遍历多个可变数量的参数,那么:

FOR %%A IN (%*) DO (
    REM --Code goes here--
    ECHO %%A
)

我希望这有帮助。

于 2013-03-21T03:30:39.910 回答