Home > database >  Copy a file into a specific subfolder
Copy a file into a specific subfolder

Time:03-20

"Here I am"-folder
  |
  |--- mainfolder 1
  |          |
  |          |--- subfolder 1
  |          |--- subfolder 2
  |
  |--- mainfolder 2
  |          |
  |          |--- subfolder 1
  |          |--- subfolder 2

I want to place a batch-file into the "Here I am"-folder and execute it from there. It should copy a file named text.txt into all the subfolder 2 only.

Tried:

@echo off 
Setlocal EnableDelayedExpansion 
cls 
set currentDirectory=           
  • Related