shanem Posted April 7, 2010 Share Posted April 7, 2010 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. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 7, 2010 Share Posted April 7, 2010 (edited) This should work - FileCopy("D:\IMAGERS\V40S\" & $lot_platearray & "\*.*", "C:\Data\V40S\"). Edited April 7, 2010 by snowmaker - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
shanem Posted April 7, 2010 Author Share Posted April 7, 2010 This should work - FileCopy("D:\IMAGERS\V40S\" & $lot_platearray & "\*.*", "C:\Data\V40S\").THANK YOU! I'll give it a shot. Link to comment Share on other sites More sharing options...
shanem Posted April 8, 2010 Author Share Posted April 8, 2010 That code worked. Thank you again for your help snowmaker. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now