1) I click on a file in a Directory Opus Lister.
2) I have assigned F6 as a hotkey, which, when pressed, passes this command to Everything:
Code: Select all
"C:\Everything\Everything.exe" -s {file}
Code: Select all
"C:\Everything\Everything.exe" -s {file}
Code: Select all
echo %1
- first variable only, so, abc
echo %*
- all variables, so "abc " & "123 "
echo %* > abc123
- send the list of file names to a file (abc123 in this case)
pause
sed -e "s/\s$//" -e "s/ /|/g" abc123 > abc1234
- format in a manner that Everything.exe will like
- remove the trailing space, then enter an OR between each variable
- so, "abc|123"
- write those edited results to another file, abc1234
pause
set /p XXX=<abc1234
- read the edited file, abc1234 into an environmental variable, XXX
pause
set X
- display all "X" environmental variables to make sure things look OK
echo "%XXX%"
- display our "XXX" environmental variable to make sure it looks OK
pause
pause
everything -s "%XXX%"
- send the results to Everything.exe
- Everything search line should show 'def123|def'