Started working on building a website this week. Is covering a part-time project I'm working on. Doing it all using sublime, inkscape and gimp. Once i feel the website is far enough along, I'm going too look into starting up an apache VM and try to get it up and my dns pointed at it.
Is that a batch file?
Yeah.
My knowledge of batch scripts is quite limited.
But it works in the following manner
Echo off turns off the C:\Users\%Userprofile%> on each new line
color 0A sets the color of the CMD prompt to black background and Bright Green Text
Title sets the window title
:home is the home section of the script
cls clears any thing on screen that would be present
:start is the start portion of the script
echo unneeded line
echo Select an option: this types out "Select an option:" as well as the text box below
echo //====================================================================================================================//
echo // 1: Back up(Copies all files and folders, Files deleted from source stay at target location) //
echo // 2: Update Back up(Copies all files and folders, Files and folders deleted from source will be removed from target) //
echo // 3: Restore Backup(Restores Backup) //
echo // 4: Fix Source Autorun //
echo // 5: Fix Destination Autorun //
echo // 0: Exit //
echo //====================================================================================================================//
echo .unneeded line
set /p choice= Please select an option. this is an environment variable
if not '%choice%'=='' set choice=%choice:~0,1% for processing batch commands and will take you to one of the scripts below
if '%choice%'=='1' goto Backup
if '%choice%'=='2' goto UpdateBackup
if '%choice%'=='3' goto RestoreBackup
if '%choice%'=='4' goto FixSourceAutorun
if '%choice%'=='5' goto FixDestinationAutorun
if '%choice%'=='0' goto Exit
ECHO USE EITHER 1, 2, 3, 4, 5 or 0 YOU IDIOT! If you do not select the correct choice this message will be displayed
:: Note - list ERRORLEVELS in decreasing order If there is an error with either the selection or script the script will take you back to :Start
IF ERRORLEVEL 5 GOTO Start
IF ERRORLEVEL 4 GOTO Start
IF ERRORLEVEL 3 GOTO Start
IF ERRORLEVEL 2 GOTO Start
IF ERRORLEVEL 1 GOTO Start
IF ERRORLEVEL 0 GOTO Start
:Backup if 1 is selected this command runs
robocopy P:\ S:\ /B /E /V /R:1 /W:1 /XD P:\System Volume Information /XF P:\Autorun.inf /XD P:\$Recycle.Bin
pause Suspends processing of a batch program and displays Press any key to continue . . .
goto start will take you back to :Start
:UpdateBackup if 2 is selected this command runs
robocopy P:\ S:\ /B /MIR /V /R:1 /W:1 /XD P:\System Volume Information /XF P:\Autorun.inf /XD P:\$Recycle.Bin
pause Suspends processing of a batch program and displays Press any key to continue . . .
goto start will take you back to :Start
:RestoreBackup if 3 is selected this command runs
robocopy S:\ P:\ /B /E /V /R:1 /W:1 /XD S:\System Volume Information /XF S:\Autorun.inf /XD S:\$Recycle.Bin
pause Suspends processing of a batch program and displays Press any key to continue . . .
goto start will take you back to :Start
:FixSourceAutorun if 4 is selected this command runs
robocopy P:\Grayfox\ P:\ autorun.inf
pause Suspends processing of a batch program and displays Press any key to continue . . .
goto start will take you back to :Start
:FixDestinationAutorun if 5 is selected this command runs
robocopy S:\Grayfox S:\ autorun2.inf
attrib S:\autorun2.inf -H -S -R
ren S:\autorun2.inf autorun.inf
attrib S:\autorun.inf +H +S +R
pause Suspends processing of a batch program and displays Press any key to continue . . .
goto start will take you back to :Start
:Exit if 0 is selected this command runs
Exit this command closes the cmd prompt
This is what it looks like