troubleshooting Question

Need to write a batch file that will set a variable based on user input

Avatar of mguilmette
mguilmette asked on
Microsoft DOSWindows 2000Windows Batch
4 Comments1 Solution265 ViewsLast Modified:
I am building a new 2000 Terminal Server and will be copying user accounts to the new server using ROBOCOPY.  The following command works, but I have to edit the user's name before I copy every account.  What I would like to do is have the batch file prompt me for the username and insert it into the batch file.

The following command copies the account from the old server (Z:) to the new server (C:).  It does not copy mp3 files and temp files/directories.

robocopy "Z:\Documents and Settings\jperkins" "C:\Documents and Settings\jperkins" /S /E /SEC /COPYALL /V /NP /LOG:"log.txt" /XF *.mp3 /XF *.tmp /XD *temp* /R:10 /W:30

Any help will be appreciated,
Mike
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros