I'm trying to make a batch file for some new interns to use when they are doing a simple profile copy. I am pretty new when it comes to batching. I did a little bit back in the day but don't remember hardly any of it. Basically all the users are getting upgraded to new computers and I just want it to create a batch file that will copy the user's directory to an External HDD (E) and they move the External HDD to the new computer and copy the user's directory to the new computer. This is what I have so far and I'm pretty sure it's all jacked because it doesn't work, lol.
@echo off
set /p copyorrestore= Are you copying or restoring a profile? Enter 1. For Copy Enter 2. For Restore?
set /p user=Enter user's logon name?
if %copyorrestore%=="1" goto copy
if %copyorrestore%=="2" goto restore
:copy
COPY /G /S /Y C:\Users\%user% E:\
:restore
COPY /G /S /Y E:\%user% C:\Users\
pause
exit
@echo off
set /p copyorrestore= Are you copying or restoring a profile? Enter 1. For Copy Enter 2. For Restore?
set /p user=Enter user's logon name?
if %copyorrestore%=="1" goto copy
if %copyorrestore%=="2" goto restore
:copy
COPY /G /S /Y C:\Users\%user% E:\
:restore
COPY /G /S /Y E:\%user% C:\Users\
pause
exit