|
-
February 5th, 2004, 08:59 PM
#1
Registered User
Cannot find this file. Please verify ...
Problem:
I right-clicked in a folder (D:\My Programming\VB\source code) and created a new RTF document, but when I double-clicked the file to open it, I got this error:
(D:\My ) Cannot find this file. Please verify that the correct path and file name are given.
How can Windows not find it? I double-clicked right on it! What's to find? It's right there!
I went here to see if I could find something wrong:
HKEY_CLASSES_ROOT\rtffile\shell\open\command
"C:\Program Files\Windows NT\Accessories\WORDPAD.EXE" %1
But everything looked fine.
Solution:
The normal DOS way of correcting this type of error is to put quotes around your long-name paths and files. So I changed the above open command to:
"C:\Program Files\Windows NT\Accessories\WORDPAD.EXE" "%1"
(Qoutes around the %1)
This shouldn't be necessary in Windows XP, but it fixed it.
I was able to open long-filename path documents again.
But when I removed the quotes to see if it would break things again, everything was still fine.
Go figure. Whatever was broken was fixed and I didn't have to leave the edits in place.
This could come in handy for anyone who sees this type of error with any document type. Nearly every document type has a regkey named after the extension (txtfile, jpegfile, etc.). Look at the open command for the one you're having trouble with.
-
February 5th, 2004, 10:20 PM
#2
Registered User
sweet...
into my box of fixes ...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks