The directory name is not valid. ???

ponder

Honorary Master
Joined
Jan 22, 2005
Messages
92,825
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:

ponder

Honorary Master
Joined
Jan 22, 2005
Messages
92,825
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
 

nivek

Honorary Master
Joined
Mar 25, 2005
Messages
10,272
The path name not to long? Needs to be less than 255 chars
 

Sinbad

Honorary Master
Joined
Jun 5, 2006
Messages
81,152
Is it not saying something along the lines of temp directory invalid?
 

CamiKaze

Honorary Master
Joined
May 19, 2010
Messages
14,846
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?
 

sajunky

Honorary Master
Joined
Nov 1, 2010
Messages
13,124
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:

ponder

Honorary Master
Joined
Jan 22, 2005
Messages
92,825
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.
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
47,848
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?
 

KleinBoontjie

Honorary Master
Joined
Jul 30, 2010
Messages
14,607
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:

ponder

Honorary Master
Joined
Jan 22, 2005
Messages
92,825
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.
 

KleinBoontjie

Honorary Master
Joined
Jul 30, 2010
Messages
14,607
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?
 

ponder

Honorary Master
Joined
Jan 22, 2005
Messages
92,825
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.
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
47,848
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?
 

KleinBoontjie

Honorary Master
Joined
Jul 30, 2010
Messages
14,607
Try to type: %appdata%
or %temp%
in explorer, hit enter and see if you have access to either one
 
Top