Automatically copy files when USB drive connected

Hello, everyone
Good morning to all
I hope everyone is fine.

is it right guys that so many times many of them have asked this type of question (am I sure?)

but I am looking for something else that means the solution for copying all the files from a specific directory on the hard drive, to a specific directory on a USB memory device, once this device is connected.

I am looking for a batch file in it I can find a file to make a portable software. I looked it up and found a group of suggestions but they don’t work since windows 10 disables autorun.

we are finding this problem’s solution from the past few days, but we can’t find it. we need that copy scripts should work with user interaction.

is there anyone here who can help me?

Thanks a lot suggest me to the right path.