WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: kevindawe on August 20, 2013, 05:11:31 AM

Title: display directory file list (without extension) in boxtext
Post by: kevindawe on August 20, 2013, 05:11:31 AM
Hi All,

I'm trying to display a vertical list of files in a message box and i'm undecided which would be the best method. I get the file list by askitemlist as an unsorted list but from there I am unsure as to how to output this to as box text verticaly.

Any suggestions would be gratefully appreciated.
Title: Re: display directory file list (without extension) in boxtext
Post by: Deana on August 20, 2013, 08:12:20 AM
I am not sure exactly what you mean when you say 'vertically'. Are you simply asking to display each file on its own line in the Message(title,text) function?

Is this what you are looking for:

Code (winbatch) Select
list = StrCat("Red",@TAB,"Blue",@TAB,"Yellow",@TAB,"Green")
tabdelimlist = AskItemlist("Colors", list, @TAB, @UNSORTED, @MULTIPLE, @FALSE)
lfdelimlist = StrReplace( tabdelimlist, @TAB, @LF )
Message("The item selected is", lfdelimlist)
Exit