Jump to content

Recommended Posts

Posted

Hi, I'm new to AutoIT (started using it yesterday).

I'm running into a problem with a directory path using an imbedded variable.

In DOS

copy D:\IMAGERS\v40s\%lot_plate_array%\*.* C:\Data\V40S\

works just fine.

In AutoIT

FileCopy("D:\IMAGERS\V40S\"&$lot_platearray\*.*, "C:\Data\V40S\")

Does not work. The definition of $lot_platearray is not the problem since it wrote correctly in a previous line. I've tried multiple variations on the append and can't get any of them to work. I'm half tempted to call an existing DOS batch file - but that would be cheating.

Thanks in advance if anyone can help an AutoIT novice.

Posted

This should work - FileCopy("D:\IMAGERS\V40S\" & $lot_platearray & "\*.*", "C:\Data\V40S\").

THANK YOU! I'll give it a shot.

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
×
×
  • Create New...