Sign in to follow this  
Followers 0
shanem

Simple Question on Directory Paths With Variable

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Edited by snowmaker

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

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

THANK YOU! I'll give it a shot.

Share this post


Link to post
Share on other sites

That code worked.

Thank you again for your help snowmaker.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0