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






















  • 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















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






















  • 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













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













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













share|improve this question











share|improve this question




share|improve this question










asked Nov 21 at 20:22









jii ihuio

1




1












  • 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


















  • 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
















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















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
});


}
});














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
















draft saved

draft discarded




















































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.




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

QoS: MAC-Priority for clients behind a repeater

Ивакино (Тотемский район)

Can't locate Autom4te/ChannelDefs.pm in @INC (when it definitely is there)