windows - Use variable for full path -
for example, have:
1) text.txt file in d:\test folder
2) text.txt file in d:\x64_this-is-my-test_54321_99.88.77.555_folder_n12345 folder
how can copy replacement (xcopy /o /y)
text.txt file test folder x64_this-is-my-test_54321_99.88.77.555_folder_n12345 folder
by using command line (for /r [[drive:]path] %%parameter in (set) command )
if know second folder name starts x64_this-is-my-test, , other part of folder's name unknown?
for /d %%# in ("d:\x64_this-is-my-test*") copy /y "d:\test\text.txt" "%%~f#\test.txt"
using xcopy single files bad idea .better use copy.
Comments
Post a Comment