Whenever I double-click on a file (in Windows explorer) to launch TextPad, I get a Windows message stating:
Cannot find the file '<filename>' (or one of its components). Make sure the path and filename are correct and that all required libraries are available.
When I click on OK, I am successfully in TextPad and the desired document is loaded.
What file or library is missing and how should I suppress the error message?
Any suggestions?
Error msg w/doubli-click launch of TextPad
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
Andreas
Re: Error msg w/doubli-click launch of TextPad
Does it really say '<filename>' or is a real filename given? If a real filename is given, that is the file that's missing.
If you hide the important part of the error message, we can't really help you.
If you hide the important part of the error message, we can't really help you.
-
Roger Lamprey
Re: Error msg w/doubli-click launch of TextPad
<filename> refers the actual file name (or, more correctly, path name) of the file I'm loading into TextPad.
For example, suppose I am in Windows Explorer, viewing the C:\Windows directory. I double click on the file named Detlog.txt.
A window pops up with the message:
Cannot find the file 'C:\WINDOWS\DETLOG.TXT' (or one of its components). Make sure the path and filename are correct and that all required libraries are available.
When I click the OK button on that message, I am in TextPad editing the Detlog.txt document.
I chose the particular file on my computer called Detlog.txt for this example. The same effect occurs no matter what file I try to edit.
I might add that I am new to TextPad and have only installed it recently.
For example, suppose I am in Windows Explorer, viewing the C:\Windows directory. I double click on the file named Detlog.txt.
A window pops up with the message:
Cannot find the file 'C:\WINDOWS\DETLOG.TXT' (or one of its components). Make sure the path and filename are correct and that all required libraries are available.
When I click the OK button on that message, I am in TextPad editing the Detlog.txt document.
I chose the particular file on my computer called Detlog.txt for this example. The same effect occurs no matter what file I try to edit.
I might add that I am new to TextPad and have only installed it recently.
-
Roy Beatty
Re: Error msg w/doubli-click launch of TextPad
Is there a "component" file that might be missing? For instance, if you have syntax highlighting for a class, but the .SYN file is not where you told TextPad it would be, then that might cause this message to occur.
I used to get this message when trying to open a Word document from Explorer -- Word was taking so long to open that my OS figured something was missing. What was missing was RAM: I doubled it, to 256MB, and I no longer get the message.
However TextPad is so small an image that it should load much, much faster than Word.
HTH, Roy
I used to get this message when trying to open a Word document from Explorer -- Word was taking so long to open that my OS figured something was missing. What was missing was RAM: I doubled it, to 256MB, and I no longer get the message.
However TextPad is so small an image that it should load much, much faster than Word.
HTH, Roy
-
Roger Lamprey
Re: Error msg w/double-click launch of TextPad
A great suggestion. I suspect that some auxiliary file is not where Textpad thinks it should be. But, other than the syntax files, I don't know which auxiliary files are used.
The default syntax file for .txt files, text.syn, is in my
"Program Files\TextPad 4\System" subdirectory, where it got put during installation. (The TextPad program itself is in the "Program Files\TextPad 4" subdirectory.) In my Preferences/Folders specification in TextPad, it lists the
directory for Syntax to be C:\WINDOWS\Application Data\TextPad. In reading the documentation, I conclude that this latter directory is for syntax files that I may wish to add rather than for the default files. Still, to try it, I copied the text.syn file to that directory. Still got the error message.
Incidentally, I only get the error message when I launch TextPad by double-clicking on a data file to be edited. If I launch TextPad and then open the data file from within it, no error message is generated. Either way I'm "good to go." It's just a pain to have to contend with the error diagnostic.
I know it is something simple, but I am too new to TextPad to be able to figure it out.
Roger
The default syntax file for .txt files, text.syn, is in my
"Program Files\TextPad 4\System" subdirectory, where it got put during installation. (The TextPad program itself is in the "Program Files\TextPad 4" subdirectory.) In my Preferences/Folders specification in TextPad, it lists the
directory for Syntax to be C:\WINDOWS\Application Data\TextPad. In reading the documentation, I conclude that this latter directory is for syntax files that I may wish to add rather than for the default files. Still, to try it, I copied the text.syn file to that directory. Still got the error message.
Incidentally, I only get the error message when I launch TextPad by double-clicking on a data file to be edited. If I launch TextPad and then open the data file from within it, no error message is generated. Either way I'm "good to go." It's just a pain to have to contend with the error diagnostic.
I know it is something simple, but I am too new to TextPad to be able to figure it out.
Roger
-
Jens Hollmann
Re: Error msg w/double-click launch of TextPad
I don't think this is so simple.
Let's try to look on the association of TXT files. This can be found somewhere in the Windows-Explorer (I have a german NT so the translations are sort of a general dirction) under Options, file types. There is the list of all file types where you never find anything because it is not sorted by extension.
After finding the entry for TXT files, click edit and then edit again the association for "open". My settings are
application: "C:\Programme\TextPad 4\TextPad.exe" -s
Checkbox for "Use DDE" is checked and the parameters are:
DDE-Message: [open("%1")]
application: TextPad
DDE-application not active: (nothing)
Theme(?): System
Maybe there is something wrong with these settings. Or you can try by disabling the DDE-thing and replace the -s by "%1" (with quotation marks). But then you should not allow several instances of TextPad in your TextPad-settings.
Let's try to look on the association of TXT files. This can be found somewhere in the Windows-Explorer (I have a german NT so the translations are sort of a general dirction) under Options, file types. There is the list of all file types where you never find anything because it is not sorted by extension.
After finding the entry for TXT files, click edit and then edit again the association for "open". My settings are
application: "C:\Programme\TextPad 4\TextPad.exe" -s
Checkbox for "Use DDE" is checked and the parameters are:
DDE-Message: [open("%1")]
application: TextPad
DDE-application not active: (nothing)
Theme(?): System
Maybe there is something wrong with these settings. Or you can try by disabling the DDE-thing and replace the -s by "%1" (with quotation marks). But then you should not allow several instances of TextPad in your TextPad-settings.
-
Roger Lamprey
Re: Error msg w/double-click launch of TextPad
Dear Jens,
That got it! And on the first try!!!
I went to the entry for TXT files, clicked "edit" and then clicked it again. My settings were almost identical to yours, with a couple of minor differences. But the main thing was that my entry for "application:" said "Visual Studio." When I changed it to TextPad, everything worked like a champ!!
Thank you very much.
Roger Lamprey
That got it! And on the first try!!!
I went to the entry for TXT files, clicked "edit" and then clicked it again. My settings were almost identical to yours, with a couple of minor differences. But the main thing was that my entry for "application:" said "Visual Studio." When I changed it to TextPad, everything worked like a champ!!
Thank you very much.
Roger Lamprey