PC Review


Reply
Thread Tools Rate Thread

attributes lost when copying files across the network

 
 
New Member
Join Date: Oct 2009
Posts: 2
 
      1st Oct 2009
I'm using a batch file in group policy (logon script) to copy a configuration file for a set program from a network share to the users application data folder.
I've set the configuration file as read only on the network share.
The script runs, but the file doesn't copy over as read only. I'm losing the attribute when it's copied.
I'm copying from Windows Server 2003 to Windows XP Pro. I've tried this on my user account and Im a Domain Admin.
I'm at a loss and I know it has to be something so simple causing this.
Please Help!
 
Reply With Quote
 
 
 
 
Banned
Madxgraphics's Avatar
Join Date: Apr 2008
Location: In A house
Posts: 4,082
 
      1st Oct 2009
Hi MSTexas....
Welcome to the forum...

I am not to good with scripting, but there are a good few people on this forum that are pretty good. Can I suggest adding your script to your post. Would be a great help for those that try to help you....
 
Reply With Quote
 
New Member
Join Date: Oct 2009
Posts: 2
 
      2nd Oct 2009
Here is a copy of my simple script. It copies the file to the location from Group Policy in the login script, but it doesn't keep the read only attribute.
This is a configuration file for the program and we don't want users to be able to make changes to the startup config.

@ECHO OFF
copy \\airnt\eiminstall\userpreferences.config "%userprofile%\application Data\passageways\Enterprise Instant Messenger"
 
Reply With Quote
 
Senior Member
JaLing's Avatar
Join Date: Jul 2008
Location: Stowmarket
Posts: 407
 
      2nd Oct 2009
add another line of code at the end with

attrib +R "location and name of file after copy"

it will set the file read only for you

 
Looking for a Tag Line
_-_-_-_-_-_-_-_-_-_-_-

NO! I'm not coming to bed yet....
I'm still playing EVE
 
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
Copying files with attributes Girevik Microsoft Excel Programming 0 4th May 2011 05:33 PM
lost data from USB drive while copying files davey Windows XP Hardware 11 17th Oct 2009 03:28 PM
'Recent Files' on Start Menu has lost special attributes JeffG Windows Vista Installation 4 9th May 2008 11:23 AM
lost files copying to a new profile =?Utf-8?B?S2VuIFc=?= Windows XP General 3 30th Dec 2004 10:30 AM
Lost files while copying in Explore to CD =?Utf-8?B?Smlt?= Windows XP General 0 11th Jul 2004 05:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:38 PM.