Hello, welcome bath programmer.
In this tutorial I will show you make a how to copy all files on a folder to another destination folder that you like.
Lets get into the code
In this tutorial we will use command: copy but we will use program argument 1 as the source file
REM This program will copied all files containded on one directory to another folder as you like.
REM This program created by Totzfreelance 2020
REM This program use program argument number 1 or a.k.a %1 as source folder and use program argument number 2 or a.k.a %2 as destination folder
REM Example usage is: copy_to_all_files.bat C:\ C:\Users\
FOR /F "tokens=* delims=" %%i IN ('"dir /b * %1"') DO copy %%i %2%%i.txt
In this tutorial I will show you make a how to copy all files on a folder to another destination folder that you like.
Lets get into the code
In this tutorial we will use command: copy but we will use program argument 1 as the source file
REM This program will copied all files containded on one directory to another folder as you like.
REM This program created by Totzfreelance 2020
REM This program use program argument number 1 or a.k.a %1 as source folder and use program argument number 2 or a.k.a %2 as destination folder
REM Example usage is: copy_to_all_files.bat C:\ C:\Users\
FOR /F "tokens=* delims=" %%i IN ('"dir /b * %1"') DO copy %%i %2%%i.txt
Tidak ada komentar:
Posting Komentar