Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Permission Batch file  (Read 2980 times)

0 Members and 1 Guest are viewing this topic.

gdavis1144

  • Guest
Permission Batch file
« on: May 09, 2008, 12:16:46 PM »
Good Day,

I am  running windows XP Professional  in an active directory environment.
On each computer I have a t:\ drive which is used to allow students and faculty to save there work while the other area of the computers are frozen with a program called deep freeze.

what I would like to do is right script VBS or Batch file that would give the everyone group read and write permission to the t:\ drive.

any one have any advice .

Thanks for your help

Ryder17z



    Intermediate
  • Thanked: 2
    • Yes
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 10
Re: Permission Batch file
« Reply #1 on: May 14, 2008, 11:03:04 AM »
Well, you can try use some "hidden" commnads in CMD - I have only ued them once, and that was to set J:\ to be like a ROM drive

I can't remember where I found it....
The cake is a lie...

Dias de verano

  • Guest
Re: Permission Batch file
« Reply #2 on: May 15, 2008, 11:31:30 AM »
Well, you can try use some "hidden" commnads in CMD - I have only ued them once, and that was to set J:\ to be like a ROM drive

I can't remember where I found it....

That's such a very helpful reply!  ::)

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Permission Batch file
« Reply #3 on: May 19, 2008, 10:37:41 AM »
I've gotten this to work on my computer, but I'm not 100% sure if it is what you want:

Code: [Select]
Echo Y| cacls %1 /t /e /c /g %2:F

place in a batch file, and call that batch file like so:

Code: [Select]
batch <folder> <username>

in your case <username> would be "everyone".

two reasons I think it doesn't meet your requirements:

- it processes files, not the entire drive
-it also seems to only work with the files in the root dir (when given a root dir)



I'll use my physic powers: T:[$TEACHERS$], J:[CLASSES], W:[WINOLDAP] and more

was I right? do I win a cookie?
I was trying to dereference Null Pointers before it was cool.