PC Review


Reply
Thread Tools Rate Thread

Copy files with startup script

 
 
Mike Farren
Guest
Posts: n/a
 
      30th Mar 2006
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"




 
Reply With Quote
 
 
 
 
Mark Straver
Guest
Posts: n/a
 
      14th Apr 2006
Mike Farren wrote:
> 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:


Without a logon, you don't have access to file shares. Perhaps that is
your problem?

Do you have the proper rights set on the shares?
 
Reply With Quote
 
Mike Farren
Guest
Posts: n/a
 
      16th Apr 2006
That was a thought I'd had, the rights are set, and I know the shares aren't
there, but I should be able to do it with a UNC path correct? My bad, I
should have stated that earlier.


"Mark Straver" <(E-Mail Removed)> wrote in message
news:443fa9cc$(E-Mail Removed)...
> Mike Farren wrote:
>> 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:

>
> Without a logon, you don't have access to file shares. Perhaps that is
> your problem?
>
> Do you have the proper rights set on the shares?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy files with startup script Mike Farren Microsoft Windows 2000 Advanced Server 2 16th Apr 2006 04:17 AM
Copy files with startup script Mike Farren Microsoft Windows 2000 2 16th Apr 2006 04:17 AM
Copy files with startup script Mike Farren Microsoft Windows 2000 Networking 2 16th Apr 2006 04:17 AM
Startup script cannot find files? =?Utf-8?B?Um9iLVQ=?= Microsoft Windows 2000 Group Policy 1 8th Apr 2004 05:07 PM
Copying Files using startup script Brian Microsoft Windows 2000 Group Policy 4 1st Mar 2004 03:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:28 AM.