Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #batch #copy #replace #code
ADD COMMENT
Topic
Name
5+4 =