Thursday, 7 September 2017

Toolset Search Issue

I recently discovered that when using PowerBar to search for something within a script, that it only searches the original OC scripts and NOT the X1 or X2 scripts.

I managed to find out that I could batch rename a folder of files using Windows own PowerShell with the following command:

Get-ChildItem -Exclude X2-* | rename-item -NewName { "X2-" + $_.Name }

I could then add these files to my campaign directory (and easily find and remove them again if and when need be), but in the meanwhile, they can be referenced within a PowerBar "Campaign" search and it helps me to locate the searched value within these copies of the original X2 files.

X2 Scripts renamed and placed into Campaign folder for PowerBar search capability

No comments: