Salesforce

How to find files in Windows File directory based on a string.

« Go Back

Information

 
TitleHow to find files in Windows File directory based on a string.
SummaryStep by step on how to find which files have a particular string within them in the Windows system.
URL NameHow-to-find-files
Resolution

1. Finding download files for particular data strings:

  • Assignment numbers
  • User ID
  • Pallet Numbers
  • Client ID's

2. Open Command Prompt

3. Change Prompt to proper Drive:

  • Type Command- E:

4. Change directory to folder where WLM pulls files for integration.

  • Type Command- cd E:\RedPrairie\LBRPRD\LES\files\hostout\IMPORT_5O\

5. Search folder.

  • For a list of file names
    • Command- findstr -m "HPL2125X"  E:\RedPrairie\LBRPRD\LES\files\hostout\IMPORT_5O\**
    • Output- E:\RedPrairie\LBRPRD\LES\files\hostout\IMPORT_5O\R2125077-161214
  • For a list of lines where a string is used with corresponding filename and path.
    • Command- findstr -l "HPL2125X"  E:\RedPrairie\LBRPRD\LES\files\hostout\IMPORT_5O\** 
    • Output- E:\RedPrairie\LBRPRD\LES\files\hostout\IMPORT_5O\R2125080-170109:WMS0102        A010920178074653094956  000000000000001               0001000192943                          
  • For file names or other queried data to an output file: 
    • Command- findstr -l "HPL2125X"  E:\RedPrairie\LBRPRD\LES\files\hostout\IMPORT_5O\** >> PATH to directory of Choice\Newfilename.txt
    • Example- findstr -m "HPL2125X"  E:\RedPrairie\LBRPRD\LES\files\hostout\IMPORT_5O\** >>  E:\RedPrairie\LBRPRD\LES\files\List_of_files.txt
    • The list of files will be in E:\RedPrairie\LBRPRD\LES\files\ directory
ProductsWarehouse Labor Management
ModuleServer Command Maintenance, Windows Script
VersionAll
Error Message Code
Cause
Additional Information
Publication StatusPublished

Powered by