I'm a beginner with batch. I would like to copy file in \Debug\test.ext
into ..\..\new
by batch command.
I tried copy "\Debug\text.txt" "..\..\new"
, but get error "the system cannot find the file specified"
Highlight the files you want to copy. Press the keyboard shortcut Command + C . Move to the location you want to move the files and press Command + V to copy the files.
if you start your path with \
, it's an absolute, not a relative path. Try copy "Debug\text.txt" "..\..\new"
instead
if you have Debug
subdir try with
md "..\..\new" >nul 2>&1 copy ".\Debug\text.txt" "..\..\new"
md
will create a new
directory two levels up if you don't have it already.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With