When using Window's command
copy, i'm unable to find a way to force the destination-path to be created.
In the following example (assume that the source destination isn't created which is drive
copy "D:\_steam\common\Counter-Strike Global Offensive\csgo\cfg\autoexec.cfg" "D:\_material\Counter-Strike Global Offensive/autoexec.cfg"
due to the fact that the destination-path isn't created (error):
user@pc $ "D:\_steam\common\Counter-Strike Global Offensive\csgo\cfg\autoexec.cfg" "D:\_material\Counter-Strike Global Offensive/autoexec.cfg"
The system cannot find the path specified.
0 file(s) copied.
Go ahead and manually create the destination path for the file to be copied over to. But this isn't a viable solution.
I'm looking for a way (only possibility, since it's a command, is a parameter) that allows the destination-path to be created.
Hopefully it'll be possible to have this be done via 1-line of code
take a look at parameter
/D here (doesn't work in my case):