file rename - bad filename

Things you’d like to miss in the future...
Post Reply
karbuff
Posts: 4
Joined: 18 May 2021 13:20

file rename - bad filename

Post by karbuff »

Ok, this is a very weird issue I never encountered before. Hopefully I'm missing something obvious here:

I have a folder e.g. "conx", which I am able to rename. But when I try to rename it "con" or "con.x" if fails with an error message (attached).

Steps to reproduce:
  • create folder "conx"
  • rightClick/rename OR F2 to "con"
  • error message
Version
XYplorer v21.50.0100
Attachments
rename.jpg
rename.jpg (6.47 KiB) Viewed 356 times

highend
Posts: 13278
Joined: 06 Feb 2011 00:33

Re: file rename - bad filename

Post by highend »

Because that name is reserved by Windows
One of my scripts helped you out? Please donate via Paypal

karbuff
Posts: 4
Joined: 18 May 2021 13:20

Re: file rename - bad filename

Post by karbuff »

I would understand if "con" was forbidden as a folder name, but "con.x" is forbidden, too - while "con x" is allowed. Seems not right....

highend
Posts: 13278
Joined: 06 Feb 2011 00:33

Re: file rename - bad filename

Post by highend »

Try to create it inside Windows Explorer, it doesn't work. It's not XY related
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: file rename - bad filename

Post by Horst »

karbuff wrote: 18 May 2021 15:09 I would understand if "con" was forbidden as a folder name, but "con.x" is forbidden, too - while "con x" is allowed. Seems not right....
As already explained con is a reserved device name since the beginning of Windows.
This is also true for any extension you may add.
So it doesn't matter if you like it or complain. :)
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

karbuff
Posts: 4
Joined: 18 May 2021 13:20

Re: file rename - bad filename

Post by karbuff »

Alright, windows explorer shows the same behavior, so this issue may be closed. Thanks.

Post Reply