This workflow is designed to group all the files into different sub-folders based on file extension. The folder path is provided by the user. This workflow accepts the following 3 as input arguments:
in_strOptionByUser (String) - represents the value to decide whether the bot should start or not.
in_strUserInputFolderPath (String) - represents the folder path to organize the files.
in_strUserInput (String) – represents the selected option (out of 3 options – Create new folder, Add in existing folder, Keep in Miscellaneous), chosen by the user if file type is unknown.
This workflow can be used to organize any given folder. It comes pre-loaded with the essential file types and folder structure. The file types defined in the Config file are:
o Excel_WordDoc – .doc, .docx, .csv, .xls, .xlsx
Photos - .png, .jpg, .bmp, .jpeg
Videos - .mp4
Music - .mp3
Application Setup - .exe, .msi
It asks the user to select the folder he/she wants to organize, loops all the files present in the folder, checks the extension of each file and moves it into the respective sub-folder. More file types can be pre-defined in the Config file just by adding a row and entering details ‘File extension’ and ‘Folder Name’. For any file which has an unknown extension, it gives the user the three options below:
Create a new folder – Creates new sub-folder with the name entered by the user and moves the file to that sub-folder. It also adds this file-folder mapping into the Config file and moves all the files with this extension to the required sub-folder.
Add in existing folder – Gives a drop-down option to the user and moves the file to the chosen subfolder. It also adds this file-folder mapping into the Config file and moves all the files with this extension to the required sub-folder.
Keep in miscellaneous – Moves the file to the miscellaneous sub-folder.
This workflow also gives the user the option to move all the personal files to the personal sub-folder if the ‘Username’ is filled in the Config file. The bot will check the name of each file and if it has ‘Username’ in it, it will create a sub-folder named “Username” and moves the file into it.