Copy command for folders with \..\ and \= names with .bat files -
i searched everywhere on google , there doesn't seem solution. xcopy, copy, robocopy, parsing literal string via variable, wildcard characters..
copy c:\soulworker\datas\bin\table\nf2\data12.v c:\soulworker\datas\=true_english\ /r c:\soulworker\datas\bin\table\nf2\english\ %%f in (*.res) copy %%f c:\soulworker\datas\bin\table\nf2\data12.zip\..\bin\table\
on =
equals sign in path or file name, read cmd
syntax: escape characters, delimiters , quotes:
delimiters
delimiters separate 1 parameter next - split command line words.
parameters separated spaces, of following valid delimiters:
- comma (,)
- semicolon (;)
- equals (=)
- space ( )
- tab ( )
to keep delimiter in file or path name, use double quotes follows:
copy c:\soulworker\datas\bin\table\nf2\data12.v "c:\soulworker\datas\=true_english\"
on using ..
doubled full stop, read naming files, paths, , namespaces:
use 2 consecutive periods (..) directory component in path represent parent of current directory.
for instance,
dir c:\soulworker\datas\bin\table\nf2\data12.zip\..\bin\table\ dir c:\soulworker\datas\bin\table\nf2\data12xzip\..\bin\table\ dir c:\soulworker\datas\bin\table\nf2\foobar.exe\..\bin\table\ dir c:\soulworker\datas\bin\table\nf2\foobarabcd\..\bin\table\
would resolve
dir c:\soulworker\datas\bin\table\nf2\bin\table\
even if skipped directory component in path contains inadmissible characters e.g. *
(asterisk), ?
(question mark) or :
(colon), see next example:
==> dir /b /s c:\windows\foo***...???:::\..\system32\notepad.exe c:\windows\system32\notepad.exe ==>
the \foo***...???:::
path part (preceding \..
) not parsed @ all…
Comments
Post a Comment