The directory name is not valid. ???

ponder

Honorary Master
Joined
Jan 22, 2005
Messages
98,672
Reaction score
31,344
Location
Niflheimr
Windows 8.1 & Office Home and Student 2010

When you try and open some excel or word documents you get,

"The directory name is not valid."
C:\Users\<username>\...\sheet001.docx

or something to that effect.

Any idea on how to fix this?
 
Last edited:
Just too add that if I go searching for that sheet001.docx on C: I find it in,
C:\Users\<username>\AppData\Local\Temp
C:\Users\<username>\AppData\Local\Temp\moz_mapi
 
The path name not to long? Needs to be less than 255 chars
 
Is it not saying something along the lines of temp directory invalid?
 
Why is it stored in AppData? Is that file not just a reference file as I assume that that is a temp folder/file/directory?
 
1. You are in temp restricted area. File is locked by some background process. Close all applications and copy a file to the user working area.
2. Application is trying to open the template or restore last session. Close all applications and delete all files in temp folder.
 
Last edited:
1. You are in temp restricted area. File is locked by some background process. Close all applications and copy a file to the user working area.
2. Application is trying to open the template or restore last session. Close all applications and delete all files in temp folder.

Nothing is open.
I deleted the contents of C:\Users\<username>\AppData\Local\Temp and still get the same error.
 
Usually those temp directories happen when you opened the file from an application like Outlook.

Try saving as to a normal location before working on it?
 
Nothing is open.
I deleted the contents of C:\Users\<username>\AppData\Local\Temp and still get the same error.

Your own stuff or another users folder? Try replacing <username> with the actual username (name of folder)?? Or if you need to use a wildcard, it should be %username%
Someone else's folder shouldn't work.
 
Last edited:
Usually those temp directories happen when you opened the file from an application like Outlook.

Try saving as to a normal location before working on it?

It is in a normal location, my documents or whatever.


Your own stuff or another users folder? Try replacing <username> with the actual username (name of folder)?? Or if you need to use a wildcard, it should be %username%
Someone else's folder shouldn't work.

There is only a singly user on this pc, <username> is a generic I inserted to protect the companies privacy as the username is the company name.
 
It is in a normal location, my documents or whatever.




There is only a singly user on this pc, <username> is a generic I inserted to protect the companies privacy as the username is the company name.

Are you logged onto this PC as that username? Does this user have Local admin rights?
Are you trying to connect/open remotely?
 
Are you logged onto this PC as that username? Does this user have Local admin rights?
Are you trying to connect/open remotely?

Yes, yes.

No it's files on the C: drive in the normal documents location. This crap only started recently, there is nothing funny about the setup it's a normal standalone desktop pc. Booting from a linux livecd you can open the files without problem so they are not corrupted or anything, it's some windows fsckup.
 
Yes, yes.

No it's files on the C: drive in the normal documents location. This crap only started recently, there is nothing funny about the setup it's a normal standalone desktop pc. Booting from a linux livecd you can open the files without problem so they are not corrupted or anything, it's some windows fsckup.

Overwrite ownership and permissions for the folder and try again?
 
Try to type: %appdata%
or %temp%
in explorer, hit enter and see if you have access to either one
 
Top
Sign up to the MyBroadband newsletter
X