Trying to create directories returns “The system cannot find the file specified.” win10
up vote
-1
down vote
favorite
When I am trying to make a directory or make changes to any items through CMD, PS, or any CLI like Yarn, MVN, DOTNET, it returns errors stating that the folders and files I should have created from that process does not exist.
Microsoft Windows [Version 10.0.17134.407]
This was working literally two days ago, I come back to the PC today and
C:UsersnameDocuments>dotnet new console
Template "Console Application" could not be created.
Error while processing file /content/ConsoleApplication-CSharp/Company.ConsoleApplication1.csproj
Could not find file 'C:UsersnameDocumentsDocuments.csproj'.
C:UsersnameDocuments>mkdir Directory
The system cannot find the file specified.
PS C:UsersnameDocuments> mkdir Folder
mkdir : Could not find file 'Folder'.
At line:1 char:1
+ mkdir Folder
+ ~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:UsersnameDocumentsFolder:String) [New-Item], FileNotFoundException
+ FullyQualifiedErrorId : CreateDirectoryIOError,Microsoft.PowerShell.Commands.NewItemCommand
PS C:UsersmitchDocuments> yarn init
...
...
success Saved package.json
error Could not write file "C:\Users\name\Documents\yarn-error.log": "ENOENT: no such file or directory, open 'C:\Users\name\Documents\yarn-error.log'"
error An unexpected error occurred: "ENOENT: no such file or directory, open 'C:\Users\name\Documents\package.json'".
info Visit https://yarnpkg.com/en/docs/cli/init for documentation about this command.
name@DESKTOP-OT6VC6I:/mnt/c/users/name/Documents$ mkdir a
mkdir: cannot create directory ‘a’: No such file or directory
command-line
add a comment |
up vote
-1
down vote
favorite
When I am trying to make a directory or make changes to any items through CMD, PS, or any CLI like Yarn, MVN, DOTNET, it returns errors stating that the folders and files I should have created from that process does not exist.
Microsoft Windows [Version 10.0.17134.407]
This was working literally two days ago, I come back to the PC today and
C:UsersnameDocuments>dotnet new console
Template "Console Application" could not be created.
Error while processing file /content/ConsoleApplication-CSharp/Company.ConsoleApplication1.csproj
Could not find file 'C:UsersnameDocumentsDocuments.csproj'.
C:UsersnameDocuments>mkdir Directory
The system cannot find the file specified.
PS C:UsersnameDocuments> mkdir Folder
mkdir : Could not find file 'Folder'.
At line:1 char:1
+ mkdir Folder
+ ~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:UsersnameDocumentsFolder:String) [New-Item], FileNotFoundException
+ FullyQualifiedErrorId : CreateDirectoryIOError,Microsoft.PowerShell.Commands.NewItemCommand
PS C:UsersmitchDocuments> yarn init
...
...
success Saved package.json
error Could not write file "C:\Users\name\Documents\yarn-error.log": "ENOENT: no such file or directory, open 'C:\Users\name\Documents\yarn-error.log'"
error An unexpected error occurred: "ENOENT: no such file or directory, open 'C:\Users\name\Documents\package.json'".
info Visit https://yarnpkg.com/en/docs/cli/init for documentation about this command.
name@DESKTOP-OT6VC6I:/mnt/c/users/name/Documents$ mkdir a
mkdir: cannot create directory ‘a’: No such file or directory
command-line
Taking the simple example ofC:UsersnameDocuments>mkdir Directory
. Can you run Process Monitor - docs.microsoft.com/en-us/sysinternals/downloads/procmon. From the Filter menu, choose "Enable Advanced Output" then in the filter add a new rule:Path
contains
wibble
as an example of a unique string Then run as before mkdir wibble. Do you see cmd.exe get an error?
– HelpingHand
Nov 21 at 22:18
Can you create directories with File Explorer in the same folders you're trying to create them from the command line?
– Twisty Impersonator
Nov 28 at 13:49
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
When I am trying to make a directory or make changes to any items through CMD, PS, or any CLI like Yarn, MVN, DOTNET, it returns errors stating that the folders and files I should have created from that process does not exist.
Microsoft Windows [Version 10.0.17134.407]
This was working literally two days ago, I come back to the PC today and
C:UsersnameDocuments>dotnet new console
Template "Console Application" could not be created.
Error while processing file /content/ConsoleApplication-CSharp/Company.ConsoleApplication1.csproj
Could not find file 'C:UsersnameDocumentsDocuments.csproj'.
C:UsersnameDocuments>mkdir Directory
The system cannot find the file specified.
PS C:UsersnameDocuments> mkdir Folder
mkdir : Could not find file 'Folder'.
At line:1 char:1
+ mkdir Folder
+ ~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:UsersnameDocumentsFolder:String) [New-Item], FileNotFoundException
+ FullyQualifiedErrorId : CreateDirectoryIOError,Microsoft.PowerShell.Commands.NewItemCommand
PS C:UsersmitchDocuments> yarn init
...
...
success Saved package.json
error Could not write file "C:\Users\name\Documents\yarn-error.log": "ENOENT: no such file or directory, open 'C:\Users\name\Documents\yarn-error.log'"
error An unexpected error occurred: "ENOENT: no such file or directory, open 'C:\Users\name\Documents\package.json'".
info Visit https://yarnpkg.com/en/docs/cli/init for documentation about this command.
name@DESKTOP-OT6VC6I:/mnt/c/users/name/Documents$ mkdir a
mkdir: cannot create directory ‘a’: No such file or directory
command-line
When I am trying to make a directory or make changes to any items through CMD, PS, or any CLI like Yarn, MVN, DOTNET, it returns errors stating that the folders and files I should have created from that process does not exist.
Microsoft Windows [Version 10.0.17134.407]
This was working literally two days ago, I come back to the PC today and
C:UsersnameDocuments>dotnet new console
Template "Console Application" could not be created.
Error while processing file /content/ConsoleApplication-CSharp/Company.ConsoleApplication1.csproj
Could not find file 'C:UsersnameDocumentsDocuments.csproj'.
C:UsersnameDocuments>mkdir Directory
The system cannot find the file specified.
PS C:UsersnameDocuments> mkdir Folder
mkdir : Could not find file 'Folder'.
At line:1 char:1
+ mkdir Folder
+ ~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:UsersnameDocumentsFolder:String) [New-Item], FileNotFoundException
+ FullyQualifiedErrorId : CreateDirectoryIOError,Microsoft.PowerShell.Commands.NewItemCommand
PS C:UsersmitchDocuments> yarn init
...
...
success Saved package.json
error Could not write file "C:\Users\name\Documents\yarn-error.log": "ENOENT: no such file or directory, open 'C:\Users\name\Documents\yarn-error.log'"
error An unexpected error occurred: "ENOENT: no such file or directory, open 'C:\Users\name\Documents\package.json'".
info Visit https://yarnpkg.com/en/docs/cli/init for documentation about this command.
name@DESKTOP-OT6VC6I:/mnt/c/users/name/Documents$ mkdir a
mkdir: cannot create directory ‘a’: No such file or directory
command-line
command-line
asked Nov 21 at 20:22
jii ihuio
1
1
Taking the simple example ofC:UsersnameDocuments>mkdir Directory
. Can you run Process Monitor - docs.microsoft.com/en-us/sysinternals/downloads/procmon. From the Filter menu, choose "Enable Advanced Output" then in the filter add a new rule:Path
contains
wibble
as an example of a unique string Then run as before mkdir wibble. Do you see cmd.exe get an error?
– HelpingHand
Nov 21 at 22:18
Can you create directories with File Explorer in the same folders you're trying to create them from the command line?
– Twisty Impersonator
Nov 28 at 13:49
add a comment |
Taking the simple example ofC:UsersnameDocuments>mkdir Directory
. Can you run Process Monitor - docs.microsoft.com/en-us/sysinternals/downloads/procmon. From the Filter menu, choose "Enable Advanced Output" then in the filter add a new rule:Path
contains
wibble
as an example of a unique string Then run as before mkdir wibble. Do you see cmd.exe get an error?
– HelpingHand
Nov 21 at 22:18
Can you create directories with File Explorer in the same folders you're trying to create them from the command line?
– Twisty Impersonator
Nov 28 at 13:49
Taking the simple example of
C:UsersnameDocuments>mkdir Directory
. Can you run Process Monitor - docs.microsoft.com/en-us/sysinternals/downloads/procmon. From the Filter menu, choose "Enable Advanced Output" then in the filter add a new rule: Path
contains
wibble
as an example of a unique string Then run as before mkdir wibble. Do you see cmd.exe get an error?– HelpingHand
Nov 21 at 22:18
Taking the simple example of
C:UsersnameDocuments>mkdir Directory
. Can you run Process Monitor - docs.microsoft.com/en-us/sysinternals/downloads/procmon. From the Filter menu, choose "Enable Advanced Output" then in the filter add a new rule: Path
contains
wibble
as an example of a unique string Then run as before mkdir wibble. Do you see cmd.exe get an error?– HelpingHand
Nov 21 at 22:18
Can you create directories with File Explorer in the same folders you're trying to create them from the command line?
– Twisty Impersonator
Nov 28 at 13:49
Can you create directories with File Explorer in the same folders you're trying to create them from the command line?
– Twisty Impersonator
Nov 28 at 13:49
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377405%2ftrying-to-create-directories-returns-the-system-cannot-find-the-file-specified%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Taking the simple example of
C:UsersnameDocuments>mkdir Directory
. Can you run Process Monitor - docs.microsoft.com/en-us/sysinternals/downloads/procmon. From the Filter menu, choose "Enable Advanced Output" then in the filter add a new rule:Path
contains
wibble
as an example of a unique string Then run as before mkdir wibble. Do you see cmd.exe get an error?– HelpingHand
Nov 21 at 22:18
Can you create directories with File Explorer in the same folders you're trying to create them from the command line?
– Twisty Impersonator
Nov 28 at 13:49