Page 1 of 1

Cannot get -f command line option to work

Posted: Sat Jul 18, 2015 7:25 pm
by lontjr
I'm sure it's something I'm missing, but the following in a Windows 8.1 shortcut does not work

"C:\Program Files\TextPad 7\TextPad.exe" -f "C:\Users\Lon\Dropbox\config\Textpad"

My intention is to use the dropbox folder as a common area for configuration items. But the argument is treated as a relative path, not absolute, so the message on opening textpad is

C:\Program Files\TextPad 7\C:\Users\Lon\Dropbox\config\TextPad
The filename, directory name or volume label syntax is incorrect.

Posted: Sun Jul 26, 2015 11:54 pm
by lontjr
Not many answers here.

This works, can't say it's particularly pretty, and there's still either a bug or I'm doing something wrong..

"C:\Program Files\TextPad 7\TextPad.exe" -f "..\..\Users\Lon\Dropbox\config\Textpad\"

Posted: Tue Jul 28, 2015 5:15 pm
by miked
I would say it's a bug. The help for command line parameters states "If the folder pathname is not absolute, it will be relative to the folder containing TextPad.exe" which suggest an absolute path should be allowed.

What happens if you use %USERPROFILE%\Dropbox\config\Textpad\ ?

Posted: Tue Jul 28, 2015 6:26 pm
by lontjr
Good thought, but same results, the symbol expands and gives the same error message.