Skip to main content

FileFolder - Get

Summary

The script can be used to search for any file or folder on the computer. The name of the file or folder to be searched should be passed to the "ToSearchFor" parameter. It also supports regex input.

For example, to search for the folder "Desktop," you should use the regex "Desktop$" (where "$" represents the end of the string). To find any file with "Desktop" in the path, simply enter "Desktop."
For regex reference, visit: https://regexr.com/

Sample Run

Sample Run

Dependencies

The files Everything.exe and es.exe will be downloaded from ProVal's File Server. Ensure that the following URL and files are not blocked by any antivirus program or ThreatLocker:

Variables

NameDescription
SearchResultResult of the search

User Parameters

NameExampleRequiredDescription
ToSearchFor//Desktop$TrueName of the file or folder to look for. Use regex for better results.

Process

  1. Check if the parameter is passed or is blank.
  2. Attempt to search for the file or folder inputted in the parameter.
  3. Retry the search if it fails, displaying "Please make sure Everything is running." in the output.
  4. Log the search result or error accordingly.

Output

  • Script Log
  • @SearchResult@ holds the results.