I am trying to create two login accounts and then if a user selects user1, a folder called marketing is made in his account and its shared. A similar thing is done for user2 (finance). This is just a rough idea of my code. I am beginner at this, so please understand my situation (I know there must be mistakes in my code, because it doesn't work).
This is my code for the batch file.
Code:
@echo off
set /p userid=Please select your id (user1 or user2 only)...
if %userid% == "user1" goto mkt
if %userid% == "user2" goto fin
:mkt
net user user1 /add
md Marketing
net share Marketing_folder = C:\Users\user1 /remark:"Marketing for User1"
net use /user:user1
:fin
net user user2 /add
md Finance
net share Finance_folder = C:\Users\user2 /remark:"Finance for User2"
net use /user:user2
pause
@echo on
exit
waiting for some help, and I am also trying from my end.
Cheers!
Bookmarks