mkdir %USERPROFILE%\Desktop\resources\
for /f “tokens=1-2 delims=,” %%d in (StudClass.txt) do if %%e == %username% mkdir %USERPROFILE%\Desktop\resources\%%d
for /f “tokens=1-2 delims=,” %%d in (StudClass.txt) do if %%e == %username% shortcut /F:”%USERPROFILE%\Desktop\resources\%%d\%%e.lnk” /A:c /T:\\server\g:\resources\%%d\%%e
for /f “tokens=1-2 delims=,” %%d in (TeacherClass.txt) do if %%e == %username% shortcut /F:”%USERPROFILE%\Desktop\resources\%%d\” /A:c /T:\\server\g:\resources\%%d

Advertisements