problem when opening file...

General questions about using TextPad

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

Post Reply
cow
Posts: 3
Joined: Thu May 08, 2003 6:00 pm
Location: nevada, usa

problem when opening file...

Post by cow »

whenever i double-click filename.txt file to open it, i get prompted by textpad to create a file called 'and' and 'filename' (filename changes with whatever file i try to open). example: if i try to open blah.txt, textpad prompts me to create a file called 'and' and 'blah'.

the error windows say 'OK to create' and then the path to the file.

this is really weird because it just started happening and only happens when i try to open a file by double-clicking it. i don't have any problems if i open a .txt file using the file > open command in textpad or even if i use the right-click context menu.

i've checked the file type properties in tools > folder options > file types and the open command uses this: "C:\Program Files\TextPad 4\TextPad.exe" %1

what does the %1 at the end mean?

any ideas?? tia!
-----
User avatar
Bob Hansen
Posts: 1517
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

what does the %1 at the end mean?
It is just a wild card that represents the selected file name.

Note from the TextPad Help File, Command Line Parameters that the correct syntax for TextPad is -u filename.

-u filename: Open the file, whose name can contain spaces, but does not need to be quoted.
Hope this was helpful.............good luck,
Bob
cow
Posts: 3
Joined: Thu May 08, 2003 6:00 pm
Location: nevada, usa

thanks bob!

Post by cow »

i replaced the %1 with -u and it works fine now :)
-----
Post Reply