I am trying to make a file with the command line with the form of
mkdir -p /path/to/directory && touch /path/to/directory/file.txt
so in my case it will be like this: mkdir -p layout && touch layout/layout.ejs, but I receive a message
touchis not recognized as an internal or external command, operable program or batch file.
The folder has been made successfully but the file is not.
touchto create an empty file with PowerShell – phuclv Dec 18 '23 at 06:23mkdir -pin Windows?, powershell equivalent of linux "mkdir -p"?, mkdir -p is "ambiguous" what should I do?, How to recursively create subfolder in each folder of a directory in CMD, How to create multiple sub-directories in one command from windows command prompt? – phuclv Dec 18 '23 at 12:05touchwithtype, astouchis a non-Windows command andtypeis the Windows equivalent to create an empty file with 0B – JW0914 Dec 22 '23 at 06:17