I have a file which is in folder structure like this E:\project\b\c\d\e\my.js
I need to copy this file to another folder along with it's directory structure
e.g. I want to copy this file in E:\project\patch
. So the command should do copy in such a way that when I run it the file should be at E:\project\patch\b\c\d\e\my.js
. I can not copy folder b
directly to the folder patch
using file explorer cause b
has so many other sub folders and files. I don't want to copy those.
Currently I am doing creating folder manually and copying the file. But I pretty much sure there will a command for this.
mkdir path\to\file
then copy the file manually.readlink
. You have to find the equivalent for it in [Windows](www.bryanpendleton.blogspot.com/2010/07/windows-and-file-links.html) This will give you the complete path. Once it is a text, you can pick what you need and usemkdir
command to create the directory and copy the file name using another command.