FileCopy, Multiple Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Vh_
Posts: 201
Joined: 17 Mar 2017, 22:06

FileCopy, Multiple

30 Aug 2018, 09:57

Hello,

I'm trying to copy multiple files over with a File Dialogue. I'm thinking StringSplit & some math *would work* but is likely not the proper method and probably an easier way out there.

Objective:
User selects multiple files and then they will be moved to another destination.

Code: Select all

FileSelectFile, FileList, M
;StringSplit, SplitList, FileList, `n
Msgbox, You Selected %FileList%
Any help on this is appreciated!

Thanks,
Vh
garry
Posts: 2338
Joined: 22 Dec 2013, 12:50

Re: FileCopy, Multiple  Topic is solved

30 Aug 2018, 11:48

example

Code: Select all

FileSelectFile, FileList, M
Loop, Parse,filelist, `n, `r
  {
  x:= a_loopfield
  if (a_index=1)
    {
	y:= x . "\"
	continue
	}
  msgbox,%y%%x%
  }
return  
Vh_
Posts: 201
Joined: 17 Mar 2017, 22:06

Re: FileCopy, Multiple

30 Aug 2018, 12:37

Thank you, garry!

Return to “Ask For Help”

Who is online

Users browsing this forum: 4k3or3et, AHKStudent, Bing [Bot], boiler, davehotkeys, Google [Bot], nacken012, rhaos and 44 guests