Prompt for Files/Folders - Examples            How to use?

 

Example 1: Prompt for a file which is further used in a loop to enter data.

  1. Open the Task Editor from Tools -> Task Editor
  2. Double click on the 'Prompt for file'
  3. Enter the desired caption.
  4. Enter the custom message for the user to feed in the file.
  5. Assign the value to a list variable from the list.
  6. Expand the 'Loop' command and double click on List'.
  7. Select the list variable which you assigned to the file.
  8. Double click on 'Insert Keystrokes' command.
  9. Select the window tile from the list of the file in which data is to be entered.
  10. Type your data which you want to insert in to the file.
  11. Click on 'Save' button.

Note: This is a procedure for a single file. You can do the same for multiple files. You will just have to check on 'Enable this task to run with similar window titles/files' under 'General Tab' under 'Properties' menu.

Example 2: Prompt for the folder which contains the setup files (setup.exe).

  1. Open the Task Editor from Tools -> Task Editor
  2. Double click on the 'Prompt for folder'
  3. Enter the desired caption.
  4. Enter the custom message for the user to select the folder.
  5. Assign the value to a value variable from the list.
  6. Click 'Save' button.
  7. Double click on 'Open Program/File'.
  8. Insert the variable to which the value of the folder was assigned followed by '\setup.exe' in the Program/File path.
  9. Click 'Save' button.