Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I'm working on a batch file to pull a couple of software deployments, install service packs and then follow up with removing default desktop icons and replacing them with a company standard profile icon. However, it doesn't seem to be working right. Can someone take a look at what I have done and see what it is that I am missing or created in error?
@ECHO OFF
@CLS
ECHO.
ECHO.
ECHO Preparing to install Civil 3D 2009... Please wait...ECHO.
ECHO.
copy "\\servername\AutoCAD Deployment\isrunning.exe" c:\
copy "\\servername\AutoCAD Deployment\sleep.exe" c:\ECHO Installing Civil 3D 2009... Please wait...
\\servername\"AutoCAD Deployment"\C3D2009\AdminImage\SETUP.exe \\servername\"AutoCAD Deployment"\C3D2009\AdminImage\C3D2009.ini
ECHO.:CheckProcessC3D
c:\sleep.exe 30
c:\isrunning.exe Setup
if %ERRORLEVEL% == 1 goto CheckProcessC3DECHO Installing Land Desktop 2009... Please wait...
\\servername\"AutoCAD Deployment"\LDT2009\AdminImage\SETUP.exe \\servername\"AutoCAD Deployment"\LDT2009\AdminImage\LDT2009.ini
ECHO.:CheckProcessLDT
c:\sleep.exe 30
c:\isrunning.exe Setup
if %ERRORLEVEL% == 1 goto CheckProcessLDTECHO Installing Civil 3D 2009 Service Pack 1... Please wait...
\\servername\"AutoCAD Deployment"\"Service Packs"\Civil\c3d2009sp1.exe
ECHO.ECHO Installing Land Desktop 2009 Service Pack 1... Please wait...
\\servername\"AutoCAD Deployment"\"Service Packs"\"Land Desktop"\ldt2009sp1.exe
ECHO.ECHO Installing Vault 2008 to 2009 Support... Please wait...
\\servername"\AutoCAD Deployment"\"Service Packs"\Vault\c3d2008_vault2009_support.exe
ECHO.del "%ALLUSERSPROFILE%\Desktop\AutoCAD Civil 3D 2009.lnk"
del "%ALLUSERSPROFILE%\Desktop\AutoCAD Civil 3D 2009 as AutoCAD.lnk"
del "%ALLUSERSPROFILE%\Desktop\AutoCAD Civil 3D Land Desktop Companion 2009.lnk"
del "%ALLUSERSPROFILE%\Desktop\AutoCAD Land Companion Enabled Map 2009.lnk"
del "%ALLUSERSPROFILE%\Desktop\Autodesk Autoloader 2009.lnk"
copy "\\L:\Library\ACAD\ACADProfiles\shortcut\C3D 2009.lnk" "%ALLUSERSPROFILE%\Desktop\"
copy "\\L:\Library\ACAD\ACADProfiles\shortcut\LDT 2009.lnk" "%ALLUSERSPROFILE%\Desktop\"ECHO.
ECHO.
ECHO.
@CLS
ECHO Setup has completed...pause
Thank You,Cadguy

![]() |
Batch file to delete a sh...
|
ms dos - delete command
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |