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.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

it should be in the  "default user" profile,,,, this profile is hidden so you will need to show hidden files first
hope this helps
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.
breezy1Author Commented:
hmm but the default user profile will have no impact on profiles already created right?
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

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

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

That should work.

copy "%LOGONSERVER%\netlogon\"" %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
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?
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
Yes, for that edit your default user profile.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.