Can a new Workspace be created from the command line?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Coemgen
Posts: 12
Joined: Sat Jul 29, 2006 11:57 am

Can a new Workspace be created from the command line?

Post by Coemgen »

I want to create new TextPad instances from a command line script. I've tried using the command: TextPad.exe "text.tws" but this creates a 0 Kb file that TextPad does not recognize as a Workspace. Can you suggest a way to create a valid Workspace from the command line?
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Open TextPad. With no files open save the current session as an empty workspace (File | Workspace | Save As...).

This produces a 45-byte file:

Code: Select all

 0   ff ff 06 00 07 00 54 65  78 74 50 61 64 00 00 00   ÿÿ....TextPad...
10   00 00 00 00 00 01 00 00  01 00 00 00 00 00 00 80   ...............€
20   00 00 00 00 00 00 00 00  00 00 00 00 00            .............
To create a new workspace, just copy this empty workspace into a new file.
Coemgen
Posts: 12
Joined: Sat Jul 29, 2006 11:57 am

Post by Coemgen »

Thanks!
Post Reply