Skip to main content
Question

Need help to modify "Copy File from Payload" worklet to overwrite file if it exists

  • 23 July 2024
  • 1 reply
  • 26 views

I need to push an updated Word letterhead template to all users because an attorney joined the firm, but the template already exists on all machines, The existing worklet Copy File from Payload checks to see if the file already exists and skips it if it does. I don’t code, can anyone help with a worklet that would copy the file to the directory I specify and overwrite it if it already exists?

Thanks!

1 reply

Badge

Disregard, the worklet does overwrite the file.

 

Now the problem I have is figuring out how to specify the path .. the users path will all be different, how do I replace “tjm” with the logged in users’ username?

C:\Users\tjm\AppData\Roaming\Microsoft\Templates

Reply