Hi, Long time user first time poster.
I want to be able to automagically delete the users home directory and share. I have the share figured out, but the home dir escapes me. Here is a copy of my batch file and I will explain the problem:
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
@echo on
if %1 == ADD goto ADD
if %1 == MODIFY goto MODIFY
if %1 == DEL goto DEL
goto END
EL
c:\rmtshare \\%5\%6 /DELETE
rmdir /s /q %7
goto END
:ADD
goto END
:MODIFY
goto END
:END
pause
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
The Problem is i need to be able to go to
%servername%\d$\pathtohomedirs\homedir
I can use \\%5\this part I cant figure out\%3
Help says use %7 for home dir path but when I add a pause to the CL I see that it shows \\servername\none.
Any suggestions would be great.
Version is 3.0K
Thanks
I want to be able to automagically delete the users home directory and share. I have the share figured out, but the home dir escapes me. Here is a copy of my batch file and I will explain the problem:
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
@echo on
if %1 == ADD goto ADD
if %1 == MODIFY goto MODIFY
if %1 == DEL goto DEL
goto END

c:\rmtshare \\%5\%6 /DELETE
rmdir /s /q %7
goto END
:ADD
goto END
:MODIFY
goto END
:END
pause
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
The Problem is i need to be able to go to
%servername%\d$\pathtohomedirs\homedir
I can use \\%5\this part I cant figure out\%3
Help says use %7 for home dir path but when I add a pause to the CL I see that it shows \\servername\none.
Any suggestions would be great.
Version is 3.0K
Thanks
Comment