How can I fix this TextPad external tool command?

1.1k Views Asked by At

When I'm editing a file named:

S:\!DJ DAP\PlaylistFormatName.vbs

and execute this tool:

enter image description here

I expect launch of the file

"S:!DJ DAP\PlaylistFormatName-Test.bat"

but get this fail:

'S:\!DJ' is not recognized as an internal or external command,

operable program or batch file.

How can I fix this?

I'm using TextPad 7.5.1.on Windows 7 Pro 64-bit.

PS Removing the brackets gives the same fail:

enter image description here

EDIT: This workaround may suit. It succeeds in the test case, but I am not certain the result is always equivalent.

enter image description here

1

There are 1 best solutions below

4
On

Take out the () from the parameters. When I used "$FileDir\($BaseName)-Test.bat", I could recreate the error. When I used "$FileDir\$BaseName-Test.bat" it worked as expected.

Or try this: Command: c:\windows\System32\cmd.exe Parameters: /c "$FileDir\$BaseName-Test.Bat" Initial Folder: $FileDir

I swear by an even bigger stack of K&R manuals that it worked.