Chimaera Posted April 23, 2012 Share Posted April 23, 2012 (edited) Ok brief synopsisi have 2 arrays and i want to make it just one to simplify thingsbut one deals with reg keys by name and the other deals with shortcuts by name & file extIt wont matter if the array elements are added to make one arraythey are processed by different commands obviouslythis is for the linksGlobal $aPathKeys[36] = [35, "Acer VCM", "Adobe Gamma Loader", etc] Global $path = @StartupDir & "" For $g = 1 To $aPathKeys[0] If FileExists($path & $aPathKeys[$g]) Then FileDelete($path & $aPathKeys[$g]) Sleep(100) EndIf Nextif i merge the arrays this set will need to have .lnk added to the elements however many there areIs it possible?egAcer VCMbecomesAcer VCM.lnk within the array Edited April 23, 2012 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
czardas Posted April 23, 2012 Share Posted April 23, 2012 (edited) Perhaps I misunderstood this. Is there any reason why you can't use simple concatenation? #include <Array.au3> Local $aArray[9] = ["1","2","3","4","5","6","7","8","9"] For $i = 0 To UBound($aArray) -1 $aArray[$i] &= ".lnk" Next _ArrayDisplay($aArray) Edited April 23, 2012 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Chimaera Posted April 23, 2012 Author Share Posted April 23, 2012 There is absolutely no reason Ive been sat fiddling with that and completely missed the obvious option Many thanks my liege If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
czardas Posted April 23, 2012 Share Posted April 23, 2012 (edited) Missing the obvious is something I also have experience in. Glad I could help. Edited April 23, 2012 by czardas operator64 ArrayWorkshop 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