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.
Cursor position issue: opening TextPad in DOS batch
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 11
- Joined: Tue May 08, 2007 5:01 pm
- Location: NJ
- Contact:
Cursor position issue: opening TextPad in DOS batch
Last edited by Paul in NJ on Fri Aug 08, 2008 7:28 pm, edited 1 time in total.
-
- Posts: 11
- Joined: Tue May 08, 2007 5:01 pm
- Location: NJ
- Contact:
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.
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.