Page 1 of 1

problem when opening file...

Posted: Thu May 08, 2003 6:13 pm
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!

Posted: Thu May 08, 2003 7:29 pm
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.

thanks bob!

Posted: Fri May 30, 2003 7:01 pm
by cow
i replaced the %1 with -u and it works fine now :)