Code: Select all
@echo off
Title Folder/File Move
:Start
cls
echo ---------Folder/File Move---------
echo This is how it works
echo We move your files or folders
echo from the desktop to somewhere else.
echo But first, you must answer some questions
set /p File="Which file or folder would you like to move?"
set /p A="Which drive would you like it in? example C:,D:,E: "
IF %1%="E" Goto disk
IF %1%="F" Goto FlashDrive
set /p S="What user?"
set /p D="What Folder?
set /p ?="Are there any more folders?"
If %?%=="Yes" Goto Extra
If %?%=="Yes" Goto Extra
If %?%=="No" Goto Move
If %?%=="no" Goto Move
:Extra
set /p F="What is the next folders name?"
set /p ?2="Any more?"
If %?2%=="No" Goto Movemore1
set /p G="What is the next folders name?"
set /p ?3="Any more?"
If %?3%=="No" Goto Movemore2
set /p H="What is the next folders name?"
set /p ?4="Any more?"
If %?4%=="No" Goto Movemore3
echo ERROR NO MORE FOLDERS CAN BE ADDED TO THE QUEUE
Goto Move
:Move
IF Exist C:\Users\Mike\Desktop\%file% move C:\Users\Mike\Desktop\%file% %A%:\Users\%S%\%D%
GOTO Success
:Movemore1
IF Exist C:\Users\Mike\Desktop\%file% move C:\Users\Mike\Desktop\%file% %A%:\Users\%S%\%D%\%F%
GOTO Success
:Movemore2
IF Exist C:\Users\Mike\Desktop\%file% move C:\Users\Mike\Desktop\%file% %A%:\Users\%S%\%D%\%F%\%G%
GOTO Success
:Movemore3
IF Exist C:\Users\Mike\Desktop\%file% move C:\Users\Mike\Desktop\%file% %A%:\Users\%S%\%D%\%F%\%G%\%H%
GOTO Success
:Disk
IF Exist C:\Users\Mike\Desktop\%file% move C:\Users\Mike\Desktop\%file% E:
Goto Success
:FlashDrive
If Exist C:\Users\Mike\Desktop\%file% move C:\Users\Mike\Desktop\%file% F:
Goto Success
:Success
Echo Success!!
pause > nul
Goto Start