Now on to the other part of my macro that i ran in to something.
I want to combine full filepaths of all files in a folder into a separate string to then combine it with a command for a program before that.
Example
In d:\temp i have 3 files. test001.wav, test002.wav and test003.wav
I already have it to extract just the filename and combine it with a remote web folder.
http://www.visuell3d.se/test/sounds/test001.wav
I have a Repeat that cycles through the array of files from the GetFileList of d:\temp
I want a String that is "http://www.visuell3d.se/test/sounds/test001.wav http://www.visuell3d.se/test/sounds/test002.wav http://www.visuell3d.se/test/sounds/test003.wav"
If it looks unclear, it´s a space between the filepaths.
So that i can then combine it with another thing before that string like this: "vlc --loop http://www.visuell3d.se/test/sounds/test001.wav http://www.visuell3d.se/test/sounds/test002.wav http://www.visuell3d.se/test/sounds/test003.wav"
Hopefully it makes sense.
/Daniel
Code: Select all
Let>SourceFolder=d:\temp
Let>RemoteFolder=http://www.visuell3d.se/test/sounds/
GetFileList>%SourceFolder%\*.wav,files
Separate>files,;,file_names
ExtractFileName>file_names_%k%,oldfilename
Let>k=0
Repeat>k
Let>k=k+1
ExtractFileName>file_names_%k%,oldfilename
Let>combined=%RemoteFolder%%oldfilename%
MessageModal>combined
// Create a string of full paths of all files
Until>k,file_names_count
// Combine string with ssh vlc command --loop string
// Open up SSH Program and send command with string to start process