Jump to content


Sign in to follow this  
Lordnicon79

Copying files into special directory via batch-file

Recommended Posts

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

Share this post


Link to post
Share on other sites


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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...