Skip to content

Copying files into special directory via batch-file

Featured Replies

Hi,

 

my intention is to copy 2 files into a folder, where only the admin own full permissions. Normal user have only read permissions.

 

The destination directory is: C:\Program Files\Java\jdk1.8.0_45\jre\lib\security

The new two files are: jocal_policy.jar and us_export_policy.jar

 

i have to overwrite two files in destination folder, because they are to old. (or first, i delete the old two files and then copy the new two files)

 

Here is my Batchfile, but i dont understand why nothing changes, if i send the batch file to a client:

 

del "C:\Program Files\Java\jdk1.8.0_45\jre\lib\security\*.jar"
copy %~dp0local_policy.jar "C:\Program Files\Java\jdk1.8.0_45\jre\lib\security"
copy %~dp0US_export_policy.jar "C:\Program Files\Java\jdk1.8.0_45\jre\lib\security"

 

first i generate a application (at sccm12) an configured the following:

 

i told sccm to store the files permanent into Clientcache and to download all files

 

if you need more details, please ask me! I dont know how to go on for fixing the problem

 

thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.