Batch Script, how do i get this to run for each user - TechRepublic
Question
May 1, 2009 at 08:36 AM
jfaulk

Batch Script, how do i get this to run for each user

by jfaulk . Updated 17 years, 2 months ago

the code:

@echo on
IF EXIST C:\Documents and Settings\%username%\NetHood\Test (
goto end
) ELSE (
REGEDIT [ /s ] modifiedStartMenu.reg
mkdir C:\Documents and Settings\%username%\NetHood\Test
)
:end
pause

I know some things can be removed such as the pause but how can i get this to run for the specific user that is logged on??

This discussion is locked

All Comments