apply xah copy file location fuction