need mechanism for adding shares ... #109
This commit is contained in:
parent
8486480346
commit
18e25197c5
@ -7,6 +7,7 @@ rem ===================
|
|||||||
set TOOLS=%SystemDrive%\tools
|
set TOOLS=%SystemDrive%\tools
|
||||||
set SCRIPT_SETTINGS=%TOOLS%\scripts\settings.cmd
|
set SCRIPT_SETTINGS=%TOOLS%\scripts\settings.cmd
|
||||||
set COMPANY_SETTINGS=%TOOLS%\company\settings.cmd
|
set COMPANY_SETTINGS=%TOOLS%\company\settings.cmd
|
||||||
|
set CUSTOM_SCRIPT=%TOOLS%\company\custom.cmd
|
||||||
set USERCONFIG_DONE="%LOCALAPPDATA%"\.userconfig_done
|
set USERCONFIG_DONE="%LOCALAPPDATA%"\.userconfig_done
|
||||||
set EMLICENSE_DONE="%LOCALAPPDATA%"\.emlicense_done
|
set EMLICENSE_DONE="%LOCALAPPDATA%"\.emlicense_done
|
||||||
set STARTMENU=%APPDATA%\Microsoft\Windows\Start Menu\Programs
|
set STARTMENU=%APPDATA%\Microsoft\Windows\Start Menu\Programs
|
||||||
@ -508,13 +509,16 @@ echo Starting the workstation service ...
|
|||||||
net start workstation 1>nul 2>nul
|
net start workstation 1>nul 2>nul
|
||||||
net config workstation
|
net config workstation
|
||||||
|
|
||||||
echo ####### %0 #######
|
rem =================================================
|
||||||
|
rem search for custom script (only with ADMIN rights)
|
||||||
|
rem =================================================
|
||||||
|
|
||||||
if %ERRORLEVEL% NEQ 0 (
|
isuseradmin
|
||||||
echo # unknown ERROR! #
|
if %ERRORLEVEL% == 0 (
|
||||||
echo ####### %0 #######
|
if EXIST %CUSTOM_SCRIPT% (
|
||||||
echo.
|
echo OK. Calling custom script ...
|
||||||
pause
|
call %CUSTOM_SCRIPT%
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
goto END
|
goto END
|
||||||
@ -550,7 +554,7 @@ ping 127.0.0.1 -n 3 >nul 2>nul
|
|||||||
start explorer.exe
|
start explorer.exe
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
rem ####################################################
|
|
||||||
|
|
||||||
:END
|
:END
|
||||||
|
echo.
|
||||||
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user