Page 1 of 1

Adding a TextPad macro in my Batch File

Posted: Fri Oct 01, 2010 8:33 pm
by Onenguyen
I have a batch file that gives me a directory listing of al the files in a certain folder and I want it to run a macro that I have set up in TextPad. So far I have:

@echo off
dir %1 /b /-p /o:gn > "c:\Listing.txt"
start /w textpad "c:\Listing.txt"
exit

What would I put in to run that macro?

Posted: Wed Oct 06, 2010 11:45 pm
by Bob Hansen
Sorry, but you cannot call a TextPad macro from a command line.

After TextPad opens, you will need to manually start the TextPad macro.

Posted: Thu Oct 07, 2010 9:36 am
by ACRobin
Just for information but still not a fix to the fundamental problem of running a macro in TP from a batch command line.

You could set-up a "tool" in textpad(TP) to do the directory listing for you, either to a file or to the "tool output" window.