techdude25
Baseband Member
- Messages
- 25
I needs some help writing an If/Then Statement in a Batch File.
I have users using Office 2000 or Office 2003. They would like Word, Excel, and Power Point Icons on the desktop. I have used the xcopy command to copy the 2003 icons to the screen.
Example:
xcopy "C:\Program Files\Microsoft Office\OFFICE11\excel.exe" "C:\Documents and Settings\%username%\Desktop\" /i /y
I could do the same code for 2000, replacing Office11 with Office10. But if the user has both installed, they will get the icon for both on the desktop.
I need a statement that says if Office11 is installed use it, if not, then use office10. Any help is appritiated
I have users using Office 2000 or Office 2003. They would like Word, Excel, and Power Point Icons on the desktop. I have used the xcopy command to copy the 2003 icons to the screen.
Example:
xcopy "C:\Program Files\Microsoft Office\OFFICE11\excel.exe" "C:\Documents and Settings\%username%\Desktop\" /i /y
I could do the same code for 2000, replacing Office11 with Office10. But if the user has both installed, they will get the icon for both on the desktop.
I need a statement that says if Office11 is installed use it, if not, then use office10. Any help is appritiated