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









share|improve this question







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 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















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









share|improve this question







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 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













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









share|improve this question







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






share|improve this question







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.











share|improve this question







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.









share|improve this question




share|improve this question






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 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
















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















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






jii ihuio is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















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






























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.










 

draft saved


draft discarded


















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.















 


draft saved


draft discarded














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





















































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







Popular posts from this blog

Mouse cursor on multiple screens with different PPI

Agildo Ribeiro

Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”