Search
 
SCRIPT & CODE EXAMPLE
 

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 %_targetdir%
endlocal
Comment

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
Comment

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
Comment

batch copy and replace code

@echo off
setlocal
rem get the .lnk target directory
for /f "tokens=* usebackq" %%i in (`type "C:UsersHomeDesktopExample.lnk" ^| find "" ^| findstr/b "[a-z][:][]"`) do (
  set _targetdir=%%~dpi
  )
rem copy the files
copy /y file1.exe %_targetdir%
copy /y file2.exe %_targetdir%
endlocal
Comment

PREVIOUS NEXT
Code Example
Shell :: comand for insalling playonlinux 
Shell :: flask db upgrade add new not nullable column 
Shell :: grep output of two commands 
Shell :: how-to-install-angular-cli-locally-without-the-g-flag 
Shell :: Storm Breaker ModuleNotFoundError: No module named "pyngrok" 
Shell :: Failed to save two-factor authentication : The Perl module Authen::OATH needed for two-factor authentication is not installed. Use the Perl Modules page in Webmin to install it. 
Shell :: Keepalived initialization file 
Shell :: bash read length of fasta file seqeunces 
Shell :: awk last match 
Shell :: delete strings after match to eol using sed command 
Shell :: install coreutils 
Shell :: install kubernetes plg 
Shell :: bash if call function 
Shell :: user cisco list command 
Shell :: dll create github 
Shell :: Fastp github 
Shell :: give names to ips on local machine ubuntu 
Shell :: how to collect values from each iteration of a loop and save them bash 
Shell :: bcrypt fails during docker compose 
Shell :: add-apt-repository command not found ubuntu 20.04 
Shell :: linux hide mouse pointer for touch 
Shell :: linux top change delay 
Shell :: permission denied: unknown 
Shell :: GemWrappers: Can not wrap missing file: 
Shell :: timer in terminal ubuuntu 
Shell :: vulkano rust 
Shell :: video imagemagick with name filename on frame 
Shell :: how to change expiry date for user linux 
Shell :: get OS name uname 
Shell :: linux df -h levels occupy 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =