How to move specific files from local source folder to specific destination folder with double click

Опубликовано: 30 Август 2023
на канале: I.T PLUS SOLUTIONS
272
4

How to move specific files from local source folder to specific destination folder with double click

the commands:
( copy and paste in text file and save with bat file to create a script )

@echo off
set "source_folder=." REM Path to the current working directory
set "destination_folder=C:\Users\User\Desktop\MY PDF FILES
set "extension=.pdf"

for %%A in ("%source_folder%\*%extension%") do (
move "%%A" "%destination_folder%"
)

echo Moved PDF files successfully!