Skip to content

Instantly share code, notes, and snippets.

@zhujo01
Last active August 29, 2015 14:06
Show Gist options
  • Save zhujo01/db90b83e463373997f2c to your computer and use it in GitHub Desktop.
Save zhujo01/db90b83e463373997f2c to your computer and use it in GitHub Desktop.
@echo off
::#####################################################################
::#
::# CliQr start-up script
::#
::# Copyright(c) 2012 CliQr Technologies, Inc., all rights reserved.
::#
::#####################################################################
set OSMOSIX_HOME="C:\Program Files\osmosix"
:loop
if not exist c:\temp\ready (
if not exist "C:\Program Files\VMware\VMware Tools" (
if exist "D:\setup64.exe" (
d:
cd \
setup64 /s /v/qn
ping -n 600 127.0.0.1 > NUL
)
)
ping -n 2 127.0.0.1 > NUL
goto loop
)
set /p MIP=<"c:\temp\mip"
set /p USER=<"c:\temp\user"
if exist c:\temp\product.key (
set /p PKEY=<"c:\temp\product.key"
slmgr.vbs –ckms
slmgr.vbs –upk
slmgr.vbs /ipk %PKEY%
slmgr.vbs /ato
del c:\temp\product.key
)
if not exist %OSMOSIX_HOME%\.cliqrRemountDFS (
reg import c:\temp\nfs.reg
)
net start "Client for NFS"
if exist c:\temp\storageid (
set /p SID=<"c:\temp\storageid"
:mnty
ping -n 30 127.0.0.1 > NUL
mount %MIP%:/global y:
if not exist y:\ (
goto mnty
)
:mntx
ping -n 30 127.0.0.1 > NUL
mount %MIP%:/%SID% x:
if not exist x:\ (
goto mntx
)
goto end
)
mount %MIP%:/dfs/%USER%/shared x:
:end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment