Search

Can't create "aux.txt" by S4turno

Active

6
0
Sign in
to vote
Type: Bug
ID: 778208
Opened: 2/1/2013 6:19:17 AM
Access Restriction: Public
0
Workaround(s)
2
User(s) can reproduce this bug
Seem impossible create a file named "aux.txt".
Changing file name, no error occurred. I've tried on two different pcs.
Details (expand)
How often does this happen?
Always Happens

Have you seen this problem before in this product?

I don't know if this issue existed previously
Reproduction Steps
PS D:\Temp> New-Item aux.txt -type file -force -value "This is text added to the file"
New-Item : FileStream non aprirà dispositivi Win32 quali partizioni su disco e unità a nastro. Non utilizzare "\\.\"
nel percorso.
In riga:1 car:1
+ New-Item aux.txt -type file -force -value "This is text added to the file"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo         : NotSpecified: (:) [New-Item], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.NewItemCommand
Expected Results

    Directory: D:\Temp


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---        01/02/2013     15:00         30 aux.txt
File Attachments
0 attachments
Sign in to post a comment.
Posted by Stephen Mills on 2/20/2013 at 11:07 PM
Ouch, this is painful. I guess it thinks it is an "aux" device. It doesn't matter if it even has an extension. Same problem with Out-File. You can do "Out-File c:\aux" and get the same error. This REALLY needs to be fixed sooner rather than later.
Sign in to post a workaround.