Hi -- I am trying to launch FileLocator Pro via command line and using a regular expression to search inside all files for SSNs but I'm not having alot of luck. If I try:
FileLocatorPro.exe -d c: -s -o PIIScanResults_2015_11_4.csv -ofc -cex "^((?!000)(?!666)(?:[0-6]\d{2}|7[0-2][0-9]|73[0-3]|7[5-6][0-9]|77[0-2]))-((?!00)\d{2})-((?!0000)\d{4})$"
I get "Unexpected Command Line parameter" error message.
Separated by line, I have:
FileLocatorPro.exe (program)
-d c: (search c:\ drive)
-s (search subdirs)
-o PIIScanResults_2015_11_4.csv (output to this file)
-ofc (format is *.csv)
-cex "^((?!000)(?!666)(?:[0-6]\d{2}|7[0-2][0-9]|73[0-3]|7[5-6][0-9]|77[0-2]))-((?!00)\d{2})-((?!0000)\d{4})$" (use this Regular Expression)
Removing the double-quotes gets me in trouble with DOS' command-line interpreter:
'7[0-2][0-9]' is not recognized as an internal or external command, operable program or batch file. I'm afraid under this scenario it's wanting me to provide Escape Codes (granted, the RegEx itself has Escape Codes in it as well, so I may end-up not doing a correct search if any additional Escape Codes are used).
Q: Is there a means to passively pass a regular expression? Or somehow get around this situation?
I looked at several Q/A's in the knowledgebase today & did not see anything similar that might give me a hint on what to try.
Thanks for any/all help & pointers!