Post: Help with writing a batch file
04-09-2013, 03:55 PM #1
patastinky
NEW Avatar~~~
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys. I need helping in writing a simple .bat file that will move files from one directory into another (cut, not copy). The scenario is this. I have multiple folders (i.e. testfolder1, testfolder2, testfolder3, etc) I'd like to move all the files that are in each of these directories into ONE folder (i.e. HOME). I setup a test environment in order to test out the "copy" feature, but i would really like to just "CUT" or "MOVE" the files. Not "copy". So far I have this..

@Echo off

xcopy C:\testfolder1\*.* C:\testfolder2

xcopy C:\testfolder2\testfile2.* C:\testfolder1

Right now this will copy "all files" from testfolder1 into testfolder2. Once that's done it will copy filename "testfile2" into testfolder 1. Pretty cool!

This is the 1st time i'm writing a .bat file using notepad.
04-10-2013, 01:44 AM #2
~SpongeBob
[move]Winning.[/move]
    :home
@echo off
Echo What Type Of file are you trying to move?
Echo (1) Vanilla Minecraft
Echo (2) Tekkit
Echo (3) Feed The Beast
Echo (4) Exit
set /p selection=
if %selection% == 1 goto Vanilla
if %selection% == 2 goto Tekkit
if %selection% == 3 goto FTB
if %selection% == 4 exit
if %selection% == exit exit
:Vanilla
move .minecraft\*.* C:\Users\%Username%\AppData\Roaming\.minecraft
pause
cls
goto home
:Tekkit
move .techniclaucner\*.* C:\Users\%Username%\AppData\Roaming\.TechnicLauncher
pause
cls
goto home
:FTB
move Mindcrack\*.* C:\Users\%username%\Downloads
pause
cls
goto home

Here is my minecraft folder copier, hope this can help ^^

Edit: 300th Post! W00T.
Last edited by ~SpongeBob ; 04-12-2013 at 02:24 PM.
04-10-2013, 05:08 PM #3
patastinky
NEW Avatar~~~
ThANK YOU!
10-21-2024, 08:52 AM #4
I want to share my experience with the You must login or register to view this content. service provided by Global Assignment Help! Their dedication to excellence and worldwide recognition establish them as a premier option for students across the globe. As a professional in academic writing, I am proud to contribute to their team, delivering high-quality assignments customized to meet the unique needs of every student. students also use this You must login or register to view this content. for their thesis and other assignments.

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo