Get Files

From UBot Studio
Revision as of 20:12, 1 May 2013 by LillyT (Talk | contribs)

Jump to: navigation, search

$Get Files is a File Function. The function returns the list of all files within a given directory.

You can set the function to return all files with file paths included or only the name of the files with their extensions.

Folder To Search: The folder path to the folder where the desired files are located.

Include Path: Determines whether the files returned will include a file path. Selecting "Yes" will return the files complete with file paths. Selecting "No" will return the files without the file paths.

Example

add list to list(%my list, $get files("C:\\Users\\UBook\\Desktop\\UBot Wiki\\Variable Functions", "Yes"), "Delete", "Global")


File:Getfiles.png


The script is using the get files function to return the contents of a folder to populate the list. Setting Include File Path to Yes returns the contents of the folder along with the file path for each file.


clear list(%my list)
add list to list(%my list, $get files("C:\\Users\\UBook\\Desktop\\UBot Wiki\\Variable Functions", "No"), "Delete", "Global")


File:Getfiles1.png


Setting Include File Path to No returns the contents of the folder along with the file path for each file.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox