Skip to main content
Michael
16-Pearl
March 1, 2024
Question

Pro Tip: Creating search paths file quickly.

  • March 1, 2024
  • 1 reply
  • 922 views

command in windows :


dir /b /s /a:d > folders.txt

 

This command will output a text file with all the recursive folders found in the current path where the command runs. 

it will create a file with all the sub directories recursively found in the starting path, and will write this out to folders.txt. This can be used and renamed to search paths file. 

It will save you a lot of time for having to create this file manually. 

 

1 reply

KenFarley
21-Topaz II
March 1, 2024

Previous discussion with utility (DOS batch) script to do things automatically.

https://community.ptc.com/t5/System-Administration/Config-pro-search-path-quot-relative-quot-path/m-p/540262#M20 

Should take care of things like putting quotes around the directory specifications. If any white space is in a directory name, the search.pro file will not work if directories are not surrounded by quotes.