M
Mike Farren
I want to use a simple batch file to copy and register files in a startup
script. I do this because I don't allow the users to write to the folders
or register the files. Registration is working if the files are present,
problem is it never copies them in from a share. Here's a copy of the
script files are located in the snapshot share and the local directories
exist:
Try 1 with long names and shares, which I realized later, the mapped drives
don't exist until logon script runs.
regsvr32 /u /s "C:\Program Files\OOJ EDMS\AIMS Controls\ALI_Link.OCX"
xcopy g:\snapshot\OCX_Up\ali_Link.ocx "C:\Program Files\OOJ EDMS\AIMS
Controls" /y
regsvr32 /s "C:\Program Files\OOJ EDMS\AIMS Controls\ALI_Link.OCX"
regsvr32 /u /s "C:\Program Files\OOJ EDMS\AIMS Controls\ALI_Evidence.OCX"
xcopy g:\snapshot\OCX_Up\ali_Evidence.ocx "C:\Program Files\OOJ EDMS\AIMS
Controls" /y
regsvr32 /s "C:\Program Files\OOJ EDMS\AIMS Controls\ALI_Evidence.OCX"
Try 2 with UNC and short names
regsvr32 /u /s "C:\Progra~1\OOJEDM~1\AIMSCo~1\ALI_Link.OCX"
xcopy /d /y /s \\treotest\snapshot\OCX_Up\ali_Link.ocx
"C:\Progra~1\OOJEDM~1\AIMSCo~1\ali_link.ocx" /y
regsvr32 /s "C:\Progra~1\OOJEDM~1\AIMSCo~1\ALI_Link.OCX"
regsvr32 /u /s "C:\Progra~1\OOJEDM~1\AIMSCo~1\ALI_Ev~1.OCX"
xcopy /d /y /s \\treotest\snapshot\OCX_Up\ali_Ev~1.ocx
"C:\Progra~1\OOJEDM~1\AIMSCo~1/ali_Ev~1.ocx" /y
regsvr32 /s "C:\Progra~1\OOJEDM~1\AIMSCo~1\ALI_Ev~1.OCX"
script. I do this because I don't allow the users to write to the folders
or register the files. Registration is working if the files are present,
problem is it never copies them in from a share. Here's a copy of the
script files are located in the snapshot share and the local directories
exist:
Try 1 with long names and shares, which I realized later, the mapped drives
don't exist until logon script runs.
regsvr32 /u /s "C:\Program Files\OOJ EDMS\AIMS Controls\ALI_Link.OCX"
xcopy g:\snapshot\OCX_Up\ali_Link.ocx "C:\Program Files\OOJ EDMS\AIMS
Controls" /y
regsvr32 /s "C:\Program Files\OOJ EDMS\AIMS Controls\ALI_Link.OCX"
regsvr32 /u /s "C:\Program Files\OOJ EDMS\AIMS Controls\ALI_Evidence.OCX"
xcopy g:\snapshot\OCX_Up\ali_Evidence.ocx "C:\Program Files\OOJ EDMS\AIMS
Controls" /y
regsvr32 /s "C:\Program Files\OOJ EDMS\AIMS Controls\ALI_Evidence.OCX"
Try 2 with UNC and short names
regsvr32 /u /s "C:\Progra~1\OOJEDM~1\AIMSCo~1\ALI_Link.OCX"
xcopy /d /y /s \\treotest\snapshot\OCX_Up\ali_Link.ocx
"C:\Progra~1\OOJEDM~1\AIMSCo~1\ali_link.ocx" /y
regsvr32 /s "C:\Progra~1\OOJEDM~1\AIMSCo~1\ALI_Link.OCX"
regsvr32 /u /s "C:\Progra~1\OOJEDM~1\AIMSCo~1\ALI_Ev~1.OCX"
xcopy /d /y /s \\treotest\snapshot\OCX_Up\ali_Ev~1.ocx
"C:\Progra~1\OOJEDM~1\AIMSCo~1/ali_Ev~1.ocx" /y
regsvr32 /s "C:\Progra~1\OOJEDM~1\AIMSCo~1\ALI_Ev~1.OCX"