answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you use batch files to copy files from the same folder as the batch file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you add any file in to startup list with batch file?

You'll need to use the copy command and copy files you want to add in startup into the statup folder via the batch file, but you need to list the file(s) you want to copy and map the location of the startup folder depending on your computer type.


Your batch is not copying the file to the mapped drives?

If you are trying to copy files from a location or to a location whose name has spaces, you will need to put the " " around the location for it to work. For example: copy C:\Users\Noah\Desktop\File.txt "C:\Program Files\Folder\File.txt" or copy "C:\Users\Noah\My Music\Music.mp3" C:\Program Files\Folder\Music.mp3 OR copy "C:\Users\Noah\My Pictures\Picture.jpg" "C:\Program Files\Folder\Picture.jpg


How do you make a batch file that copies files into a usb?

You do this: @echo off title You are hacked by a script kiddie copy "Location to copy files into here" "Location of the USB drive and what the file's names are" exit


How do you open the repair folder to extract auto exe file?

Open C drive, open your windows folder, double click on repair folder, right click on file you need, select copy, send copy of file to destination folder. If you can not view files and folders in your windows folder, select "show contents of this folder". Hope that helps


How do you copy batch file itself on any location?

Here's the code: @echo off copy "Location of Batch File" "Location to copy file into" exit


How do you copy and paste files into a folder without replacing another file with the same name?

change the name


You are deleting a file from batch file Somehow the delete function not deleting some time?

Some files can be protected from being deleted either because they are important system files or belong to a person who protected it, so if you don't own the rights for the file/folder you wish to delete, the batch file will not delete and will just say "Access is Denied".


How do you make a batch file to move files?

in your batch file type: Move (the directory or folder and the file) space (the directory you want it in) example: move "C:\Users\%username%\Desktop\text.txt" "C:\Users\%username% You can change the %username% to your username but %username%is the variable for your username


In what folder does windows xp file protection store an extra copy of system files?

c:\windows\system32\dllcache


When copying files the folder to which the is to be copied is the?

The file that is being copied is considered the "source" and the resltut of the copy and its location are considered the "destination"


When copying the folder to which the files is to be copied is the?

The file that is being copied is considered the "source" and the resltut of the copy and its location are considered the "destination"


How To create Directory Using Batch File?

You can make a folder with batch by using the command: md Foldername Example: @echo off md WikiAnswers exit The batch file would make a folder named WikiAnswers, and it would appear on your desktop