Quantcast
Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Script for change files permissions

  1. #11
    adamquadmon is offline Junior Member Thread Starter Thread Starter
    Enjoys Windows 7 Forums
     
    Join Date
    Sep 2011
    Posts
    9

    Re: Script for change files permissions

    Quote Originally Posted by kaos View Post
    It must have user input , The cacls command doesnt have a switch /y command for an auto answer
    ouch!

    is there another way that don't require user input?

    Reply With Quote Reply With Quote

  2. #12
    kaos's Avatar
    kaos is offline Senior Member
    BSOD's,batch scripts bring em
    on
     
    Join Date
    May 2011
    Posts
    876

    Re: Script for change files permissions

    Sorted it for you, Took me some time HOWEVER this works

    Code:
    :enab
    cls
    echo y| cacls "C:\Danea\Archivi/*.*" /p %username%:n
    echo.
    echo y| cacls "C:\Danea\Archivi/*.*" /e /g %username%:r
    exit

    I Have piped the command into the initial command

    Reply With Quote Reply With Quote

  3. #13
    adamquadmon is offline Junior Member Thread Starter Thread Starter
    Enjoys Windows 7 Forums
     
    Join Date
    Sep 2011
    Posts
    9

    Smile Re: Script for change files permissions

    Quote Originally Posted by kaos View Post
    Sorted it for you, Took me some time HOWEVER this works

    Code:
    :enab
    cls
    echo y| cacls "C:\Danea\Archivi/*.*" /p %username%:n
    echo.
    echo y| cacls "C:\Danea\Archivi/*.*" /e /g %username%:r
    exit

    I Have piped the command into the initial command
    perfect!

    thanks a lot!!!

    Reply With Quote Reply With Quote

  4. #14
    kaos's Avatar
    kaos is offline Senior Member
    BSOD's,batch scripts bring em
    on
     
    Join Date
    May 2011
    Posts
    876

    Re: Script for change files permissions

    your welcome


    any more scripts or anything then let me no, we can create loads of different tasks from file hiding to locking etc

    Reply With Quote Reply With Quote

  5. #15
    adamquadmon is offline Junior Member Thread Starter Thread Starter
    Enjoys Windows 7 Forums
     
    Join Date
    Sep 2011
    Posts
    9

    Re: Script for change files permissions

    Quote Originally Posted by kaos View Post
    your welcome


    any more scripts or anything then let me no, we can create loads of different tasks from file hiding to locking etc
    I'd like to learn how make it by myself, where can I find a reference?

    Reply With Quote Reply With Quote

  6. #16
    kaos's Avatar
    kaos is offline Senior Member
    BSOD's,batch scripts bring em
    on
     
    Join Date
    May 2011
    Posts
    876

    Re: Script for change files permissions

    well depends on what you want to acheieve,what you want to show or act etc

    id start basic, i would jump in the deep end creating mad stuff. start small... do something write text, then it clears

    so basics would be

    @echo off (always use this)
    cls - clear screen
    echo - echos text so to start would be
    pause - waits , press any key to continue

    @echo off
    cls
    echo hello
    pause

    the displays the word hello, and text after the echo
    to create space would be

    @echo off
    cls
    echo hello
    echo.
    echo how are you

    this would be like
    Code:
    Hello
    
    How are you

    Reply With Quote Reply With Quote

  7. #17
    adamquadmon is offline Junior Member Thread Starter Thread Starter
    Enjoys Windows 7 Forums
     
    Join Date
    Sep 2011
    Posts
    9

    Re: Script for change files permissions

    Quote Originally Posted by kaos View Post
    well depends on what you want to acheieve,what you want to show or act etc
    Is there a reference with all the possible commands?

    Reply With Quote Reply With Quote

  8. #18
    kaos's Avatar
    kaos is offline Senior Member
    BSOD's,batch scripts bring em
    on
     
    Join Date
    May 2011
    Posts
    876

    Re: Script for change files permissions

    Windows CMD Commands

    That has a list of commands, applying them into a script maybe a little harder than it looks BUT im here if u need help. Wat was u thinking of creating?

    Reply With Quote Reply With Quote

  9. #19
    adamquadmon is offline Junior Member Thread Starter Thread Starter
    Enjoys Windows 7 Forums
     
    Join Date
    Sep 2011
    Posts
    9

    Re: Script for change files permissions

    Quote Originally Posted by kaos View Post
    Windows CMD Commands

    That has a list of commands, applying them into a script maybe a little harder than it looks BUT im here if u need help. Wat was u thinking of creating?
    moving files from a source to a destination, something very easy, the list you post is what I'm looking for... thanks for all!

    Reply With Quote Reply With Quote

  10. #20
    kaos's Avatar
    kaos is offline Senior Member
    BSOD's,batch scripts bring em
    on
     
    Join Date
    May 2011
    Posts
    876

    Re: Script for change files permissions

    ok this is an example

    Code:
    @echo off
    cls
    color A 
    set /p f=Files to be moved:
    set /p d=Destination :
    xcopy %f%" "%d%
    pause
    so F is basically an open variable meaning that F can be anything i.e a path in our example. the D as our second as our destionation.. once these are set we use the normal command xcopy then outputting what we first specificed which was f and d

    you can drag a file onto the cmd window to auto populate the path but on the destination you have to make sure that the path endings with a /
    e.g c:/program files/document.txt
    to
    c:/program files/test folder /
    without that the file wont move

    Reply With Quote Reply With Quote

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Windows 7 Permissions for Changing System Time
    By jimc84 in forum Windows 7 Support
    Replies: 1
    Last Post: 06-30-2010, 08:05 PM
  2. Replies: 3
    Last Post: 03-26-2010, 08:20 AM
  3. problem for change the system permission in administrator
    By kannan in forum Windows 7 Software
    Replies: 0
    Last Post: 01-25-2010, 09:58 AM
  4. change default directory for porgram files
    By pirate2949 in forum Windows 7 Installation and Upgrade
    Replies: 1
    Last Post: 09-26-2009, 05:49 PM
  5. XP File Permissions
    By james.harding in forum Windows 7 Support
    Replies: 2
    Last Post: 04-20-2009, 01:44 AM

Visitors found this page by searching for:

batch change file permissions windows 7

batch file to modify permissions on files

vbs script to replace all child object permissions with inhertable permissions from this object

replace all child object permissions with inheritable permissions from this object icacls

change permission batch windows 8

change the permission of a folder in windows 7 with script

script change permission on files in a folder to read only

replace all child object permissions with inheritable in window 7

script to add groups in Windows 7

windows 7 permissions reset bat file

script to change windows permissions on a file

how to script changing permissions on a file in windows 7

changing inherited permissions by script

windows scripting change file date

modify c drive permissions windows 7 script network

scripted permissions win 7

replace permissions on child objects icacls reset

script to change folder permissions in windows xp

batch to replace folder permissions

replace all child object permissions with inheritable permissions from this object cacls

windows bat parent and child directory

script permissions on windows 7

how to change inheritable permissions on files in sub-folder with batch script

change permission on file windows 7 script

script to reset windows 7 permissions

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •