×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Overwrite files even when locked?

Overwrite files even when locked?

Overwrite files even when locked?

(OP)
Hi, I'm using SAP BI Platform to export reports that are in PDF format to a local folder that's shared. The problem is that these PDF reports/files are constantly locked and is preventing any overwriting. I have to use Share and Storage Management to remove those locks every time and I do see the hostname of the PC (varies) locking those files. I'm not even sure if it's an actual user who has the file open (for viewing) or is this an issue where the server locks it for no apparent reason.

I tried using openfiles command in a batch script and schedule the job to run seconds before the BI Platform schedules a report to run. This is a hit and miss so far and I'm guessing that it's not working for the most part. I also tried using Unlocker through the command line without any success.

Has anyone else run into this problem before or have a fix for this issue? I don't mind kicking the users off forcefully if it means that I can overwrite these files. No one should be editing these so it doesn't matter if they get kicked off or not. I just want to have this process automated and not have to manually login to the server to unlock those files.

We're using Windows Server 2008 R2 Standard 64-bit.

Thanks.

RE: Overwrite files even when locked?

Why don't you restrict the Domain Users group to read only rights for those files? Give the service account that overwrites them write rights.

I hope that helps.

Regards,

Mark

No trees were harmed in posting this message, however a significant number of electrons were terribly inconvenienced.

Check out my scripting solutions at http://www.thespidersparlor.com/vbscript

Work SMARTER not HARDER.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close