The | is known as a pipe and is used to direct the output of one command to the input of another. I believe the command should actually be dir /s/p c:\*.vbs | find "ping". Used this way, the output of the dir command would be searched using the find command and only lines containing the string "ping" would be listed in the output.