I'm doing some strange stuff (like none of us ever do strange stuff on a regular basis) and I'm kinda stumped. What I would like to do is start TextPad from a command prompt (essentially) that would start a macro that would do a few things, save a couple files, then exit. I've looked over the help and don't see anything for startup switches to invoke a macro.
The macro isn't too difficult and would do the following steps:
1. Open two text files into seperate buffers.
2. On File#2, find/replace to remove all quotes.
3. Copy contents of File#2 to the end of File#1.
4. Select a field from the first record of File#1
5. Save the file using that field as the file name.
6. Close. All done.
Suggestions? I think Step 5, assuming invoking a macro from command line is possible at all, is the bitch because we're moving from TextPad to Windows dialog box, though I could be wrong.
Thanks!
TextPad autostart macros?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
Cannot do it with TextPad alone. But I use Macro Scheduler on a regular basis to do similar but more complex tasks with TextPad and other programs.
Hope this was helpful.............good luck,
Bob
Bob
Thank you, Bob. I spoke with a friend and he recommended WinBatch and Windows own WSH. I'm trying to minimize additional programs since I need this to run on any computer in MIS with minimal configuration, so unfortunately I may explore doing it in Word. *shudder*
I'll be sure to take a look at Macro Scheduler.
I'll be sure to take a look at Macro Scheduler.