D
d_dave
Hi, I just build a winXP server that will function as my license
server at work running lmgrd from a mapped drive. Previously, when
running win2k server, I was able to create a local bat script and
setup a scheduled task to launch this bat script that will in turn
access the mapped drive with the application and licenses. This worked
fine until i switched over to Windows XP. Now my script fails to
access the mapped drive at startup. And when I manually run the
scheduled task, it will start but stop when I log off.
So my question... Is there anyway for me to access a mapped drive in
XP at startup and run an application in the background.
Here is my bat script:
set DRIVE_LETTER=T:
echo %DATE% %TIME% > C:\autoexnt.log
net use %DRIVE_LETTER% \\192.27.176.253\license /USER:administrator /
PERSISTENT:YES 2>> C:\autoexnt.log
echo %ERRORLEVEL% >> C:\autoexnt.log
set hh=%time:~0,2%
if "%time:~0,1%"==" " set hh=0%hh:~1,1%
set yymmdd_hhmmss=%date:~10,4%%date:~4,2%%date:~7,2%_%hh%%time:~3,2%
%time:~6,2%
set HOSTNAME=%COMPUTERNAME%
set LICENSE=Ansys
set LOG_NAME=%yymmdd_hhmmss%_%HOSTNAME%.log
for %%i in (%LICENSE%) do %DRIVE_LETTER%\%%i\bin\lmgrd.exe -local -c
%DRIVE_LETTER%\%%i\license\license.dat -l %DRIVE_LETTER%\%%i\log\%%i-
%LOG_NAME%
server at work running lmgrd from a mapped drive. Previously, when
running win2k server, I was able to create a local bat script and
setup a scheduled task to launch this bat script that will in turn
access the mapped drive with the application and licenses. This worked
fine until i switched over to Windows XP. Now my script fails to
access the mapped drive at startup. And when I manually run the
scheduled task, it will start but stop when I log off.
So my question... Is there anyway for me to access a mapped drive in
XP at startup and run an application in the background.
Here is my bat script:
set DRIVE_LETTER=T:
echo %DATE% %TIME% > C:\autoexnt.log
net use %DRIVE_LETTER% \\192.27.176.253\license /USER:administrator /
PERSISTENT:YES 2>> C:\autoexnt.log
echo %ERRORLEVEL% >> C:\autoexnt.log
set hh=%time:~0,2%
if "%time:~0,1%"==" " set hh=0%hh:~1,1%
set yymmdd_hhmmss=%date:~10,4%%date:~4,2%%date:~7,2%_%hh%%time:~3,2%
%time:~6,2%
set HOSTNAME=%COMPUTERNAME%
set LICENSE=Ansys
set LOG_NAME=%yymmdd_hhmmss%_%HOSTNAME%.log
for %%i in (%LICENSE%) do %DRIVE_LETTER%\%%i\bin\lmgrd.exe -local -c
%DRIVE_LETTER%\%%i\license\license.dat -l %DRIVE_LETTER%\%%i\log\%%i-
%LOG_NAME%