Page 1 of 1
Can a new Workspace be created from the command line?
Posted: Wed Mar 10, 2010 9:03 pm
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?
Posted: Wed Mar 10, 2010 10:07 pm
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.
Posted: Thu Mar 11, 2010 3:21 am
by Coemgen
Thanks!