Windows 7 can not rename a file to 'aux.svg': "The specified device name is invalid"
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Thinking It Over
--
Chapters
00:00 Windows 7 Can Not Rename A File To 'Aux.Svg': &Quot;The Specified Device Name Is Invalid&Quo
00:52 Accepted Answer Score 16
01:03 Answer 2 Score 3
01:25 Answer 3 Score 2
01:53 Thank you
--
Full question
https://superuser.com/questions/206423/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows #rename
#avk47
ACCEPTED ANSWER
Score 16
This is one of the file names Windows bans for historical reasons. As far as I know, you have no way around it.
ANSWER 2
Score 3
To add to alexandru's answer:
You can bypass file name parsing by using a path such as:
\\?\C:\Users\Paperflyer\aux.svg
del
and rename
in Command Prompt accept such paths. However, it's pointless to rename a file to aux
, since you won't be able to access it from other programs.
ANSWER 3
Score 2
As another addition two years later:
You can rename (and modify) to any reserved keyword with cygwin. If it's a directory, you can access it's contents with other programs on Windows, but not itself.
I came across this while compiling a program on a shared folder in a virtual machine. There was a folder named aux in the package, an immovable folder, which I extracted with cygwin formerly. So only way to get rid of is using cygwin again.