How do you use batch files to copy files from the same folder as the batch file?

1 answer

Answer

1088095

2026-03-17 23:50

+ Follow

Create a command script (or batch file) with the following commands:

@echo off

copy *.* <folder>

Replace <folder> with the desired folder (may be relative to the current folder, or an explicit, fully-qualified folder).

Note that the batch file will also be copied. You may alter the wildcard in order to limit which files you wish to copy, or use a series of copy commands to copy individual files, including wildcards where required.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.