Question:

How to create a batch file to move file from one folder to other

by  |  earlier

0 LIKES UnLike

can anybody help me to create a batch file that can cut all file that contain in a folder and paste to other folder. let us say 1, 2, 3 , 4 are the file to be moved from Folder1 to Folder2.

Thanks

 Tags:

   Report

3 ANSWERS


  1. Type the following in a text file and save it as FILENAME.BAT.

    1. MOVE *.* target folder (ex: move *.* folder1)

    IF U WANT TO MOVE FILES IN ANY OTHER DRIVE JUST MENTION THE FULL ADDRESS IN THE TARGET FOLDER AREA. (EX: MOVE *.* F:\FOLDER1

    EXECUTE THE FILE WHERE EVER YOU WANT.

    YOU'VE TO COPY THE FILE. IF U WANT EXECUTE IN ANY OTHER FOLDER.


  2. He said move not copy :X

    I had to do this because TASM put the .obj file in the bin folder, which would make a real mess if I put a whole bunch of .obj files there.

    Heres an example

    Make a textfile called move.bat, in that text file put

    MOVE C:\MyRandomFile.txt C:\SomeRandomFolder\

    pause

    This will move MyRandomFile.txt to C:\SomeRandomFolder. Thus it will now be located via C:\SomeRandomFolder\MyRandomFile.txt

    I suggest adding the pause so you can see if it worked or not.

  3. copycon a .bat

    cd <your sourde path>

    copy *.* <your destn. path>

    ctrl+z

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.