Page 1 of 1

Relative input folder path with command line input

Posted: Thu Jan 12, 2023 4:37 pm
by tbrinz
Hi there. I've been running TextCrawler Pro from a command line interface to edit batches of files using a regular expression filter.

Code: Select all

"c:\Program Files (x86)\TextCrawler Pro\TextCrawler.exe" /b "c:\Users\my_name\my_lib\file.txc" /i "D:\Documents\me\Projects\ThisProject\ThisFolder" /r /c
I would like to be able to use relative paths in the command, rather than absolute paths. This is no problem with the executable file, and seems to work with the batch file name, but I have had no luck with using the input folder as a relative path. Is this possible to do with the command line interface?

Re: Relative input folder path with command line input

Posted: Mon Jan 16, 2023 12:07 pm
by DigitalVolcano
You might be able to do it using a DOS command line variable. %CD% substitutes with the current directory.

e.g
"C:\Program Files (x86)\TextCrawler Pro\textcrawler.exe" /i "%CD%\sub1\sub2"