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

How do i copy a file to the application data in all user profiles?

I have a config file that i need to put in C:\Documents and Settings\USERID\Application Data\Sun\Java\Deployment on all users. Trying to figure it a good way to do it seeing how there is no application data in the all users profile.

thanks!
0
breezy1
Asked:
breezy1
  • 4
  • 3
  • 3
1 Solution
 
khaledfCommented:
it should be in the  "default user" profile,,,, this profile is hidden so you will need to show hidden files first
hope this helps
0
 
khaledfCommented:
on more thing, the default user profile is used when a new user account is logged to the machine. otherwise you will need to add the config file manually for existing user profiles.
0
 
breezy1Author Commented:
hmm but the default user profile will have no impact on profiles already created right?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
khaledfCommented:
thats right
0
 
MightySWCommented:
Try this,
 
Copy the file to the Netlogon dir and then change the login script by adding this:


cop "%LOGONSERVER%\netlogon\"filename.xxx" %userprofile%\Application Data\Sun\Java\Deployment

That should work.
0
 
MightySWCommented:
Sorry...

copy "%LOGONSERVER%\netlogon\"filename.xxx" %userprofile%\Application Data\Sun\Java\Deployment

Or just do the strait copy command with: %userprofile%\Application Data\Sun\Java\Deployment.

You can also do a batch file that does the changes directories, copies, etc...

Hope this helps
0
 
breezy1Author Commented:
great thanks. and would i be able to somehow make it only run for a person and not do it every time they log in?
0
 
MightySWCommented:
Well that will run for every person.  Once it is complete then take the copy out of the login script.  

The default for the copy command in a batch file is to ignore if the file is already there.

If you want to only do it for specific users then create a different login script and define the different user's login scripts to be used under active directory users and computers.

Hope this helps
0
 
breezy1Author Commented:
WIll need it to run for every user, and then all users who come in in the future.. This script is replacing a file that currently exists.
0
 
MightySWCommented:
Yes, for that edit your default user profile.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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