Copy a file from one location to another

Hi All,

is there any way through which we can copy a file from 1 location to another.

I have to copy a .ost file from a location to

c:\users\username\appdata\roaming\microsoft\templates.

Please let me know if I can achieve this.

Thanks

Looks like you will have some variation in the pathnames. How do you want to calculate what the username is?

one of the neat things with action-script is it lets you solve those types of things.

I suggest trying this in your action script:

copy "c:\new.ost" "c:\users\{name of logged on user}\appdata\roaming\microsoft\templates\new.ost"

https://developer.bigfix.com/action-script/guide/substitution.html

2 Likes