I have to be missing something here. Below is the entire script so far. I did try what you said above, and it worked when I typed it in the cmd window. The part I am having issues with is at the bottom. This is what I changed it to:
@echo off
setlocal ENABLEDELAYEDEXPANSION
REM Timestamp Generator
REM Parse the date (e.g., Fri 02/08/2008)
set cur_yyyy=%date:~10,4%
set cur_mm=%date:~4,2%
set cur_dd=%date:~7,2%
set timestamp=%cur_mm%%cur_dd%%cur_yyyy%
REM Gather input for file locations
REM :MENU1
REM set _intranetDirVer=
REM echo The default installation folder for SimplifyIT is C:\inetpub\wwwroot\simplifyIT\
REM set /p _intranetDirVer="Is this the location of your current installation? (yes/no)"
REM IF %_intranetDirVer%==yes GOTO MENU1a
REM IF %_intranetDirVer% NEQ "yes" GOTO MENU1b
REM :MENU1a
set _intranetDir=C:\inetpub\wwwroot\simplifyIT\
REM GOTO MENU2
REM :MENU1b
REM cls
REM echo If not at C:\inetpub\wwwroot\simplifyIT\
REM set /p _intranetDir="where is your installation currently? "
REM GOTO MENU2
REM :MENU2
REM cls
REM set _intranetDirVer=
REM echo The default backup folder for SimplifyIT is C:\Backups\%timestamp%\Inetpub\wwwroot\simplifyIT, where %timestamp% is the current date.
REM set /p _intranetDirVer="Is this location acceptable? (yes/no)"
REM IF %_intranetDirVer%==yes GOTO MENU2a
REM IF %_intranetDirVer% NEQ "yes" GOTO MENU2b
REM :MENU2a
set _backupDir=C:\Backups\%timestamp%\Inetpub\wwwroot\simplifyIT
REM GOTO MENU3
REM :MENU2b
REM cls
REM echo If not at C:\Backups\%timestamp%\Inetpub\wwwroot\simplifyIT
REM set /p _backupDir="where would you like to backup to? "
REM GOTO MENU3
REM :MENU3
REM cls
REM set _intranetDirVer=
REM echo The default file repository for new releases is %userprofile%\Desktop\NewRelease\simplifyIT\.
REM set /p _intranetDirVer="Is this location acceptable? (yes/no)"
REM IF %_intranetDirVer%==yes GOTO MENU3a
REM IF %_intranetDirVer% NEQ "yes" GOTO MENU3b
REM :MENU3a
set _newReleaseDir=%userprofile%\Desktop\NewRelease\simplifyIT\
REM GOTO SUMMARY
REM :MENU3b
REM cls
REM echo If not at %userprofile%\Desktop\NewRelease\simplifyIT\
REM set /p _newReleaseDir="where is your new file repository? "
REM GOTO SUMMARY
REM :SUMMARY
cls
echo File Summary
echo.
echo The location of the installation is:
echo %_intranetDir%
echo.
echo The location of the backup is:
echo %_backupDir%
echo.
echo The location of the new file repository is:
echo %_newReleaseDir%
echo.
pause
REM --------------------BEGIN WRITING NEW BATCH FILE------------------------------
ECHO @ECHO OFF >> %userprofile%\Desktop\Upgrade.bat
ECHO setlocal ENABLEDELAYEDEXPANSION >> %userprofile%\Desktop\Upgrade.bat
ECHO set cur_yyyy=^%date:~10,4^% >> %userprofile%\Desktop\Upgrade.bat
ECHO set cur_mm=^%date:~4,2^% >> %userprofile%\Desktop\Upgrade.bat
ECHO set cur_dd=^%date:~7,2^% >> %userprofile%\Desktop\Upgrade.bat
ECHO set timestamp=^%cur_mm^%^%cur_dd^%^%cur_yyyy^% >> %userprofile%\Desktop\Upgrade.bat
Now when I run it, I get this in Upgrade.bat:
@ECHO OFF
setlocal ENABLEDELAYEDEXPANSION
set timestamp=^