Today's Windows WTF Moment!
Author
Discussion

Smiler.

Original Poster:

11,752 posts

261 months

Friday 11th May 2018
quotequote all
It's a simple thing.

Copy > Paste > Rename

Or rather, it isn't.

I'm left with:




Ah, no worries, I'll just delete it. Right?




Wrong:




Erm, righto.

A bit of googling shows I'm not alone with this issue, but no way to fix it without perhaps the use of some 3rd party software.

WTF indeed rage


So, has anyone had this before & successfully resolved without a 3rd party app? If not, what 3rd party app would be the best to use (thinking some sort of wipe/delete programme)?


Note:
  1. I can't add a file type, I get the same "Could not find this item".
  2. The original file is a pdf, sent to me recently. I think it is corrupted because when I scan it using Windows Defender & Malwarebytes, the "scan files" shows as 0.

DaveH23

3,355 posts

201 months

Friday 11th May 2018
quotequote all
At a guess Adobe is not installed on the Server so it can't recognise the PDF.

Show file types and change the .pdf exfension to .txt then try deleting.

Install Adobe on the sever and try again. Or just install Adobe first. Could be wrong but that's what first springs to mind.

If it won't delete use the following command prompt.

RD /S "File Path"

RD is remove directoy
S is sub files/folders

It will then ask if you are sure, using Y or N.



Edited by DaveH23 on Friday 11th May 07:21

Smiler.

Original Poster:

11,752 posts

261 months

Friday 11th May 2018
quotequote all
Acrobat is installed on the server. There are 1000s of such files already there, many created daily.

As I said, I can't add a file type.

It won't delete via the cmd window either.

ThunderSpook

3,913 posts

242 months

Friday 11th May 2018
quotequote all
Rename it to something shorter.

Smiler.

Original Poster:

11,752 posts

261 months

Friday 11th May 2018
quotequote all
ThunderSpook said:
Rename it to something shorter.
Can't do anything - "File not found".



LordGrover

34,191 posts

243 months

Friday 11th May 2018
quotequote all
Do you have access to that folder/file, or did you have to supply credentials when you copied it originally?
It looks like you have a mapped drive T, but this is an ad-hoc connection?
Try temporarily mapping the folder, to rename/delete the file.

captain_cynic

17,669 posts

126 months

Friday 11th May 2018
quotequote all
ThunderSpook said:
Rename it to something shorter.
I suspect that he cant because he's broken the character limit in the full file path.

The easy way to do it is to rename a folder further up the path but your sysadmin may come in and beat you with the wet end of your own arm if you do this.

So the safe way is:
1. Map the network path to a drive letter,
2. Open the mapped drive.
3. Rename the file.


Smiler.

Original Poster:

11,752 posts

261 months

Friday 11th May 2018
quotequote all
LordGrover said:
Do you have access to that folder/file, or did you have to supply credentials when you copied it originally?
It looks like you have a mapped drive T, but this is an ad-hoc connection?
Try temporarily mapping the folder, to rename/delete the file.
The file in question is on a Server running Windows Server Essential 2016.

The login to my PC is the same for the server.

The server shared folders, for the most, behave just like any other folder - I can copy / paste / create / delete files & folders at will.

Drive T is local to my PC so is irrelevant (as are drives E & N).



captain_cynic said:
ThunderSpook said:
Rename it to something shorter.
I suspect that he cant because he's broken the character limit in the full file path.

The easy way to do it is to rename a folder further up the path but your sysadmin may come in and beat you with the wet end of your own arm if you do this.

So the safe way is:
1. Map the network path to a drive letter,
2. Open the mapped drive.
3. Rename the file.
Renaming the folder makes no difference, already tried it.

Mapping the folder etc makes no difference.


I also tried deleting the file from the sever - same issue, "could not find this item".




WinstonWolf

72,863 posts

270 months

Friday 11th May 2018
quotequote all
Log on to the server, launch CMD as an admin, navigate to the directory, do a dir to find the file name then

ren filename filename.extension.

You *might* need to shorten the directory path upstream, ie rename the parent directories.

Allanv

3,540 posts

217 months

Friday 11th May 2018
quotequote all
WinstonWolf said:
Log on to the server, launch CMD as an admin, navigate to the directory, do a dir to find the file name then

ren filename filename.extension.

You *might* need to shorten the directory path upstream, ie rename the parent directories.
If he does dir /x within the folder it will show the 8.3 short name for the file and it may delete using that.

Smiler.

Original Poster:

11,752 posts

261 months

Friday 11th May 2018
quotequote all
WinstonWolf said:
Log on to the server, launch CMD as an admin, navigate to the directory, do a dir to find the file name then

ren filename filename.extension.

You *might* need to shorten the directory path upstream, ie rename the parent directories.
No difference, same issue.


Allanv said:
If he does dir /x within the folder it will show the 8.3 short name for the file and it may delete using that.
File name displayed is the same.

Form Windows, there is a space after the last character. I've tried using the same syntax & also without the space when renaming - no difference.


Vaud

60,128 posts

186 months

Friday 11th May 2018
quotequote all
Smiler. said:
File name displayed is the same.

Form Windows, there is a space after the last character. I've tried using the same syntax & also without the space when renaming - no difference.
Have you tried it within quotes?

TonyRPH

13,557 posts

199 months

Friday 11th May 2018
quotequote all
At the command line, have you tried using tab completion to complete the file name?

It might be that an odd character has crept into the file name, and that's why you get 'file not found'.

I also echo the thoughts of others that the path is too long.

Booting into a portable Linux distro will enable you to fix it if the above fails.


LordGrover

34,191 posts

243 months

Friday 11th May 2018
quotequote all
Smiler. said:
Allanv said:
If he does dir /x within the folder it will show the 8.3 short name for the file and it may delete using that.
File name displayed is the same.

Form Windows, there is a space after the last character. I've tried using the same syntax & also without the space when renaming - no difference.
There (should be) two columns showing the 8.3 name and the full name.


Smiler.

Original Poster:

11,752 posts

261 months

Friday 11th May 2018
quotequote all
Vaud said:
Smiler. said:
File name displayed is the same.

Form Windows, there is a space after the last character. I've tried using the same syntax & also without the space when renaming - no difference.
Have you tried it within quotes?
Yep


TonyRPH said:
At the command line, have you tried using tab completion to complete the file name?

It might be that an odd character has crept into the file name, and that's why you get 'file not found'.

I also echo the thoughts of others that the path is too long.

Booting into a portable Linux distro will enable you to fix it if the above fails.
OK, will try that.

I've already shortened the folder names to single characters.

No idea how to boot the server into Linux.


LordGrover said:
There (should be) two columns showing the 8.3 name and the full name.
Ah, ok. There aren't, only full name.

WinstonWolf

72,863 posts

270 months

Friday 11th May 2018
quotequote all
Can you try using wildcard characters to rename it?

Move everything out of the directory temporarily then

ren i*.* newfilename.extension


sc0tt

18,318 posts

232 months

Friday 11th May 2018
quotequote all
Smiler you have PM

rdjohn

7,205 posts

226 months

Friday 11th May 2018
quotequote all
Off topic but the OP’s tale reminds me very much of a joke doing the rounds at the turn of the century.

The joke was something like when you opened Word, Mr Paperclip pops up and says

Would you like to write
- a Memo
- a Letter, or
- Would you just like me to Fu-ck-up a long report that you have just spent ages writing?

I was thinking of this when I renewed my Office 365 license this year, suddenly my Templates were removed from DropBox, where I like to keep them to access by my iPad, and shoved them back on my C drive.

Bungleaio

6,596 posts

233 months

Friday 11th May 2018
quotequote all
Why not just leave it? That's what I do with things like this.