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
New contributor
jii ihuio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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
New contributor
jii ihuio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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:Pathcontainswibbleas 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
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
New contributor
jii ihuio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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
New contributor
jii ihuio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
jii ihuio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
jii ihuio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Nov 21 at 20:22
jii ihuio
1
1
New contributor
jii ihuio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
jii ihuio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
jii ihuio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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:Pathcontainswibbleas 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
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:Pathcontainswibbleas 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
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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
jii ihuio is a new contributor. Be nice, and check out our Code of Conduct.
jii ihuio is a new contributor. Be nice, and check out our Code of Conduct.
jii ihuio is a new contributor. Be nice, and check out our Code of Conduct.
jii ihuio is a new contributor. Be nice, and check out our Code of Conduct.
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:Pathcontainswibbleas 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