Code:
- cd "%userprofile%\documents\Ogre Slayer"
if exits "Type Files" goto FileTransfer
if not exist "Type Files" goto FileInput
:FileInput
md "Type Files"
:FileTransfer
cd "%userprofile%\documents\Ogre Slayer\Type Files"
if exists "Haxs4Life.txt" goto TxtInput
if not exists "Haxs4Life.txt" goto TxtTransfer
:TxtTransfer
cd "%userprofile%\desktop\Ogre Slayer\Files"
if exists "Files" goto TxtTransfer1
if not exists "Files" goto TxtTransfer2
:TxtTransfer1
move /-y "%userprofile%\desktop\Ogre Slayer\Files\Haxs4Life.txt""C:\Users\Austin\Documents\Ogre Slayer\Type Files"
goto TxtInput
:TxtTransfer2
cd "%userprofile%\downloads\Ogre Slayer"
if exists "Ogre Slayer" goto TxtTransfer3
if not exists "Ogre Slayer" goto TransferError
:TxtTransfer3
move /-y "%userprofile%\downloads\Ogre Slayer\Files\Haxs4Life.txt""C:\Users\Austin\Documents\Ogre Slayer\Type Files"
goto TxtInput
:TransferError
@echo off
cls
color c4
echo Warning! Warning! Warning! Warning!
Echo An error has been detected!
echo Please read the READ ME!! file in your downloaded file for more info!
echo.
echo Closing game now!...
pause >nul
exit
:TxtInput
cd "%userprofile%\documents\Ogre Slayer\Type Files"
type Haxs4Life.txt
echo.
pause >nul
Step by Step breakdown process of what is supposed to be going on.
- 1.) So I want the bat file to look in the Ogre Slayer folder in documents first
2.) Its going to look for a folder labeled Type Files, if it exists it will go to the FileTransfer process.
3.) If it does not exist it will go to FileInput
4.) At FileInput it should be creating the Type Files folder in the Ogre Slayer folder located in documents.
5.) At FileTransfer it will look for the .txt file labeled Haxs4Life.txt in the Type Files folder.
6.) If its located it will go to TxtInput(which works), if its not found it will go to the TxtTransfer Process.
7.) At the TxtTransfer process it will look for a folder called Files within the Ogre Slayer folder located on the Desktop instead.
8.) If it exists it will go to TxtTransfer1, if not then it just does the same thing at TxtTransfer2 just with the download folder instead.
9.) At TxtTransfer1 i want it to move a .txt file from the specified path to the other, which I don't think is setup correctly here.
10.) From there it finally goes to TxtInput which i know works fine, if all else fails it goes to the error process also, which works fine.