
Quote from LeMachinga on July 18, 2021, 1:30 pmI have a button that save all my variables in a txt file (in a Save folder). And I have a List Object. How can my List show all txt files in my save folder?.
I remember to do that in Neobook, but I don't remember how.
Thank you.
I have a button that save all my variables in a txt file (in a Save folder). And I have a List Object. How can my List show all txt files in my save folder?.
I remember to do that in Neobook, but I don't remember how.
Thank you.

Quote from LeMachinga on July 18, 2021, 3:47 pmI have been trying with the code of an old Neobook project, and it works fine in Neobook, not in VisualNeoWin
FileList "Saves/*.sav" "Files" "[partidasguardadas]"
[partidasguardadas] doesn't appear in my variable list when I execute that code.
This is the code to save the file:
SaveVariables "Saves\[DayNum]-[Month] [Hour]_[Minute].sav"
ListBoxAddItem "ListaLoad" "1" "[DayNum]-[Month] [Hour]_[Minute].sav"
AlertBox "GAME SAVED" "Your game has been saved."
And this is the List code where should appear the list with the saves files (*.sav).
FileList "Saves/*.sav" "Files" "[partidasguardadas]"
This work well in Neobook.
I have been trying with the code of an old Neobook project, and it works fine in Neobook, not in VisualNeoWin
FileList "Saves/*.sav" "Files" "[partidasguardadas]"
[partidasguardadas] doesn't appear in my variable list when I execute that code.
This is the code to save the file:
SaveVariables "Saves\[DayNum]-[Month] [Hour]_[Minute].sav"
ListBoxAddItem "ListaLoad" "1" "[DayNum]-[Month] [Hour]_[Minute].sav"
AlertBox "GAME SAVED" "Your game has been saved."
And this is the List code where should appear the list with the saves files (*.sav).
FileList "Saves/*.sav" "Files" "[partidasguardadas]"
This work well in Neobook.
Uploaded files:

Quote from HPW on July 18, 2021, 3:52 pmFileList "C:\Temp\*.txt" "Files" "[txts]" StrParse "[txts]" "[#13]" "[MyFiles]" "[MyFilesCount]" Loop "1" "[MyFilesCount]" "[MyFile]" ListBoxAddItem "ListBox1" "0" "[MyFiles[MyFile]]" EndLoop
FileList "C:\Temp\*.txt" "Files" "[txts]" StrParse "[txts]" "[#13]" "[MyFiles]" "[MyFilesCount]" Loop "1" "[MyFilesCount]" "[MyFile]" ListBoxAddItem "ListBox1" "0" "[MyFiles[MyFile]]" EndLoop

Quote from LeMachinga on July 18, 2021, 3:54 pmThis is with Neobook. All perfect
This is with Neobook. All perfect
Uploaded files:

Quote from LeMachinga on July 18, 2021, 3:54 pmQuote from HPW on July 18, 2021, 3:52 pmFileList "C:\Temp\*.txt" "Files" "[txts]"StrParse "[txts]" "[#13]" "[MyFiles]" "[MyFilesCount]"Loop "1" "[MyFilesCount]" "[MyFile]"ListBoxAddItem "ListBox1" "0" "[MyFiles[MyFile]]"EndLoopFileList "C:\Temp\*.txt" "Files" "[txts]" StrParse "[txts]" "[#13]" "[MyFiles]" "[MyFilesCount]" Loop "1" "[MyFilesCount]" "[MyFile]" ListBoxAddItem "ListBox1" "0" "[MyFiles[MyFile]]" EndLoopFileList "C:\Temp\*.txt" "Files" "[txts]" StrParse "[txts]" "[#13]" "[MyFiles]" "[MyFilesCount]" Loop "1" "[MyFilesCount]" "[MyFile]" ListBoxAddItem "ListBox1" "0" "[MyFiles[MyFile]]" EndLoop
Thank you. I'll try that.
Quote from HPW on July 18, 2021, 3:52 pmFileList "C:\Temp\*.txt" "Files" "[txts]"StrParse "[txts]" "[#13]" "[MyFiles]" "[MyFilesCount]"Loop "1" "[MyFilesCount]" "[MyFile]"ListBoxAddItem "ListBox1" "0" "[MyFiles[MyFile]]"EndLoopFileList "C:\Temp\*.txt" "Files" "[txts]" StrParse "[txts]" "[#13]" "[MyFiles]" "[MyFilesCount]" Loop "1" "[MyFilesCount]" "[MyFile]" ListBoxAddItem "ListBox1" "0" "[MyFiles[MyFile]]" EndLoopFileList "C:\Temp\*.txt" "Files" "[txts]" StrParse "[txts]" "[#13]" "[MyFiles]" "[MyFilesCount]" Loop "1" "[MyFilesCount]" "[MyFile]" ListBoxAddItem "ListBox1" "0" "[MyFiles[MyFile]]" EndLoop
Thank you. I'll try that.

Quote from LeMachinga on July 18, 2021, 4:21 pmFinally my old code of Neobook works in VisualNeo Win (I don't know why this works if this is the same code before) . Thank you for all.
Finally my old code of Neobook works in VisualNeo Win (I don't know why this works if this is the same code before) . Thank you for all.
Quote from iretz on July 18, 2021, 4:52 pmFileList "C:\Temp\*.txt" "Files" "[txts]"
ListBoxAddItem "ListBox1" "All" "[txts]"
FileList "C:\Temp\*.txt" "Files" "[txts]"
ListBoxAddItem "ListBox1" "All" "[txts]"


Quote from CN_Iceman on September 18, 2021, 7:27 pmQuote from rcohen on September 18, 2021, 8:06 amDoes anyone know if the filelist command can be made to work recursively?
I think that by itself the FileList command is not recursive, it only shows the files and folders of a given folder.
Greetings.
Quote from rcohen on September 18, 2021, 8:06 amDoes anyone know if the filelist command can be made to work recursively?
I think that by itself the FileList command is not recursive, it only shows the files and folders of a given folder.
Greetings.

Quote from CN_Iceman on September 18, 2021, 7:34 pmTo do that, I usually use the command line:
SetVar "[Comando]" "[Folder]*.* /B /S > [#34]C:\Temp\List.txt[#34]" Run "DIR" "[Comando]" "RunOnce+Wait+LoadComplete+Minimized+Hidden" "" ""Greetings.
To do that, I usually use the command line:
SetVar "[Comando]" "[Folder]*.* /B /S > [#34]C:\Temp\List.txt[#34]" Run "DIR" "[Comando]" "RunOnce+Wait+LoadComplete+Minimized+Hidden" "" ""
Greetings.