• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 591
  • Last Modified:

Group Policy or Logon Script

I have a server based application all my users use on a regular basis. This is a custom written program (not by me) & requires that a file be written to the root of the users C drive. In the past we have went around to each users computer with a pen drive & added the file to the root of C. Now, we've taken on merged departments & our total user count has jumped from around 75 users to over 500. My question is, is there a way for me to push this file out via group policy or with a VB script? Either way will work for me. Thanks
0
wantabe2
Asked:
wantabe2
  • 2
1 Solution
 
Gunter17Commented:
Abolsutely, you can use either to do it.

Via a group policy you can create a simple batch file that does the copying for you (assuming the user that is logging in has access to the directory you want to write to.

Here's an example of the "copy" command, for single file use.
http://www.computerhope.com/copyhlp.htm

And here's one for "xcopy" command, for multiple file use (e.g *.*)
http://www.computerhope.com/xcopyhlp.htm


0
 
wantabe2Author Commented:
One more question, I forgot to mention, I will be doing this because of an upgrade. I will need to copy a file to each users computer but before I do this, is there a way for me to delete the old outdated file before I place the new updated file in the directory?
0
 
Gunter17Commented:
Sure, in your batch file you can just do a del

Your batch file might look something like this:
del C:\oldfile.db
copy \\server\share\newfile.db C:\newfile.db

Open in new window

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now