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
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
Name | Description |
---|---|
SearchResult | Result of the search |
User Parameters
Name | Example | Required | Description |
---|---|---|---|
ToSearchFor | //Desktop$ | True | Name of the file or folder to look for. Use regex for better results. |
Process
- Check if the parameter is passed or is blank.
- Attempt to search for the file or folder inputted in the parameter.
- Retry the search if it fails, displaying "Please make sure Everything is running." in the output.
- Log the search result or error accordingly.
Output
- Script Log
@SearchResult@
holds the results.