Answers for "batch command to copy and replace files"

0

batch copy and replace code

@echo off
setlocal
rem get the .lnk target directory
for /f "tokens=* usebackq" %%i in (`type "C:UsersAbdoDesktopGravity.lnk" ^| find "" ^| findstr/b "[a-z][:][\]"`) do (
  set _targetdir=%%~dpi
  )
rem copy the files
copy /y Gravity.pdf %_targetdir%
endlocal
Posted by: Guest on August-04-2021
0

batch copy and replace code

@echo off
setlocal
rem get the .lnk target directory
for /f "tokens=* usebackq" %%i in (`type "C:UsersAbdoDesktopGravity.lnk ^| find "" ^| findstr/b "[a-z][:][\]"`) do (set _targetdir=%%~dpi)
rem copy the files
copy /y Gravity.pdf %_target%
endlocal
Posted by: Guest on August-04-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language