All templates
Desktop AutomationBeginner
Open a Folder
Robomotion•Updated 9 months ago

Overview
Launches the system file explorer pointed at a given path. Minimal template demonstrating the Application.Launch node.
Open a Folder
Interacting with the file system is essential in most home and business automation scenarios. Using Robomotion, you can automatically open specific folders in File Explorer and directly interact with their content.
What Open a Folder can do
- Build Documents Path (
Core.Programming.Function) — setsmsg.documents_folder_pathto<$Home$>\Documents. - Input Dialog titled
Open a folder, messageSelect the folder to open..., defaultmsg.documents_folder_path→msg.selected_folder. - Branch On Cancel (
Core.Programming.Function,outputs: 2) — routes toCore.Flow.Stopwhenmsg.selected_folderis empty/whitespace. - Build Args (
Core.Programming.Function) — setsmsg.explorer_args = [msg.selected_folder]. - Launch Explorer (
Core.Process.StartProcess,optBackground: true,continueOnError: true) —inFilePath: explorer.exe,inArguments: msg.explorer_args→msg.app_process_id, thenCore.Flow.Stop.
Behind the scenes
explorer.exeis launched with the folder path as its sole argument, so Windows opens a new File Explorer window rooted at that folder.continueOnError: truekeeps the flow from aborting if the path is invalid or explorer is unavailable; the flow simply falls through toCore.Flow.Stop.- To port to Linux/macOS, swap
explorer.exeforxdg-open/openand dropmsg.app_process_id— those shells typically exit immediately after dispatching to the desktop environment.
More desktop automation templates
See all 11 →- Add Datetime to File NamesRenames every file in a directory by appending the current date to its name. A quick way to version artefacts, snapshots, or export batches.
- Copy FilesCopies every file from a source directory into a destination, with optional overwrite. Demonstrates how to enumerate files and drive file-system operations from a subflow.
- Delete Files of Specific Size RangeScans a directory and deletes files whose size falls inside a min/max range. Useful for pruning oversized logs or clearing tiny scratch files.
- Find and Delete Empty FilesWalks a directory, locates zero-byte files, and deletes them in a single pass. Handy for cleaning up broken export folders.
- GUI Testing CalculatorDrives the Windows Calculator through native UI automation to validate arithmetic. A concrete template for end-to-end GUI testing of desktop apps.
- Print Current Week's CalendarGenerates an HTML page for the current week and sends it to the default printer. Useful for team dashboards or physical planning boards.