none
batch file and windows version

    Question

  • We have windows 2003 server and all clients are using XP computers with office 2003. Now we have added 2 windows 7 computers with office 2010. For the XP/2003 users we have a script that creates their outlook profile automatically once they log in (richprofile). This script dose not work with windows7/2010. I need to check if the OS windows 7, then not execute the richprofile command and if it is windows XP, then excute it. Can someone help? here is the BAT file

    @echo off
    \\myserver\ClientApps\RichProfile.exe exchangeserver %UserName% outlook N D
    start dc
    .vbs
    exit

    So if windows 7 it should be

    @echo off
    start dc
    .vbs
    exit

    and if windows xp, it should be

    @echo off
    \\myserver\ClientApps\RichProfile.exe exchangeserver %UserName% outlook N D
    start dc
    .vbs
    exit

    Thanks

    Tuesday, March 29, 2011 4:11 PM

Answers

All replies