Cursor position issue: opening TextPad in DOS batch

General questions about using TextPad

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

Post Reply
Paul in NJ
Posts: 11
Joined: Tue May 08, 2007 5:01 pm
Location: NJ
Contact:

Cursor position issue: opening TextPad in DOS batch

Post by Paul in NJ »

I've long used DOS batch files to command TextPad to open a file at a specific cursor position, e.g.

start /w C:\Progra~1\TextPa~1\TextPad C:\text\text0801.txt(11,1)

This works in Windows98. However, in XP, the same command produces this error:

Windows cannot find 'C:\text\text0801.txt(11,1)'. Make sure you typed the name correctly, and then try again.

Is this specific to XP, or is there something I'm missing? Neither the help file nor a search of the forums has helped me.
Last edited by Paul in NJ on Fri Aug 08, 2008 7:28 pm, edited 1 time in total.
Paul in NJ
Posts: 11
Joined: Tue May 08, 2007 5:01 pm
Location: NJ
Contact:

Post by Paul in NJ »

This commandline issue gets weirder. In Win98, this batch file opens the file in TextPad for editing:

start /w "C:\Progra~1\TextPa~1\TextPad.exe" C:\text\textfile.html

When this batch file is run under XP, however, TextPad never opens -- instead, the HTML file is diplayed in my browser.

Moreover, I want to open a number of files in the same TextPad session, thus:

start /w "C:\Progra~1\TextPa~1\TextPad.exe" C:\text\textfile.txt C:\text\textfile2.html C:\text\textfile3.asp

Again, this only works in Win98. In XP, while the first file is opened in TextPad, the rest are ignored.
gan

Post by gan »

What version of textpad do you use?

I tried all of the examples under Windows XP and Vista and it was working fine so i cannot see the same behavior as you describe here. I'm using Textpad 5.2.
Post Reply