changing tftp path for multiple devices

Hi everyone.

Im having a small problem with changing tftp path for multiple devices.

I dont really have any knowledge with scripting, what I need to achieve is the following:

I want to log in each device and change tftp path:

path tftp:\\tftpserverIP\%devicename%

I want this command to be executed on all devices, each device gets his own name:

path tftp:\\tftpserverIP\switch01

path tftp:\\tftpserverIP\switch02

and so on...

How can I do that for all devices as a bulk in one patch?

Any help will be much appreciated