Differences
This shows you the differences between the selected revisions of the page.
2015-12-22 | 2015-12-22 | ||
typo (martin) | Action on match label (martin) | ||
Line 11: | Line 11: | ||
See also [[library_example_listing_files_matching_wildcard|Listing files matching wildcard]]. | See also [[library_example_listing_files_matching_wildcard|Listing files matching wildcard]]. | ||
- | You can alter the script for other tasks, instead of grepping the matching files. You can for example [[library_session_removefiles|remove]] or [[library_session_getfiles|download]] the matching files. Just modify the action in ''if ($fileInfo.Name -Like $wildcard)'' block accordingly. | + | You can alter the script for other tasks, instead of grepping the matching files. You can for example [[library_session_removefiles|remove]] or [[library_session_getfiles|download]] the matching files. Just modify the action in the ''Action on match'' block accordingly. |
<code powershell> | <code powershell> | ||
Line 47: | Line 47: | ||
if ($fileInfo.Name -Like $wildcard) | if ($fileInfo.Name -Like $wildcard) | ||
{ | { | ||
+ | # Action on match | ||
+ | |||
# Modify the code below if you want to do another task with | # Modify the code below if you want to do another task with | ||
# matching files, instead of grepping their contents | # matching files, instead of grepping their contents |