Jump to content

Recommended Posts

Posted

Hi guys, I'm trying to copy some files from our network share to workstations but I must be doing some stupid syntax error since it doesn't work :

Opt("ExpandEnvStrings", 1)
Local $targetDir = "%LocalAppData%"&"\Microsoft\Office\"
Local $sourceDir = "\\myserver\Office 2010\officeUI"
FileCopy($sourceDir&"\*.OfficeUI", "$targetDir", 1)

Would you have any idea as to why this is not working?

Thanks in advance!

Posted (edited)

Don't encase variables with quotes. I suggest re-reading the help file again and doing a bit more research.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...