Computing.Net > Forums > Programming > Batch File Help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch File Help

Reply to Message Icon

Name: Cadguy05
Date: January 15, 2009 at 17:06:41 Pacific
OS: Windows XP
CPU/Ram: not sure
Product: Dell / PRECISION
Subcategory: Batch
Comment:

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 CheckProcessC3D

ECHO 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 CheckProcessLDT

ECHO 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



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Batch file to delete a sh... ms dos - delete command



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch File Help

batch file help www.computing.net/answers/programming/batch-file-help/13830.html

Batch File Help www.computing.net/answers/programming/batch-file-help-/11464.html

batch file help www.computing.net/answers/programming/batch-file-help/190.html