Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Re: Setting folder permissions in WSH

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,2339
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Re: Setting folder permissions in WSH
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: <<   < prev  1 [2]
Login
Message << Older Topic   Newer Topic >>
 Re: Setting folder permissions in WSH - 3/17/2005 8:26:32 PM   
  killr0y

 

Posts: 37
Score: 0
Joined: 3/7/2005
From:
Status: offline
quote:
Originally posted by token

quote:
Originally posted by killr0y
I have to use XCACLS because CACLS doesn't support the /I flag which turns off permission inheritence.. unless theres a new version of CACLS that I don't know about.



heh.. You didn't mention that cacls won't turn off permission inheritance, I thought you have EVERYTHING already in place and you just wanted to convert the batch script to vbs.

If you can't get xcacls to work and still interested in doing it using pure vbs, let me know =)







I finally got everything working.. had to call a batch file to get XCACLS.VBS to work cleanly. Its not pretty, but it gets the job done. Thanks for your help!

(in reply to killr0y)
 
 
Post #: 21
 
 Re: Setting folder permissions in WSH - 3/17/2005 11:53:41 PM   
  mbouchard


Posts: 1894
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
Why do you need to call a bat from a script? What happens when you call the script from your script?

(in reply to killr0y)
 
 
Post #: 22
 
 Re: Setting folder permissions in WSH - 3/18/2005 1:55:03 AM   
  token

 

Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
Nice!. Glad you got it all worked out =)

(in reply to killr0y)
 
 
Post #: 23
 
 Re: Setting folder permissions in WSH - 3/18/2005 2:31:51 AM   
  killr0y

 

Posts: 37
Score: 0
Joined: 3/7/2005
From:
Status: offline
quote:
Originally posted by mbouchard

Why do you need to call a bat from a script? What happens when you call the script from your script?



Well, at the time I didn't know how to stop Shell.Run from going on to the next line without waiting for the command to finish processing... I know how to do it now, and I'll probably change it when I have time!

(in reply to killr0y)
 
 
Post #: 24
 
 Re: Setting folder permissions in WSH - 3/18/2005 4:04:41 AM   
  esnmb

 

Posts: 448
Score: 0
Joined: 1/11/2005
From: USA
Status: offline
I use it for creating new folders and assigning rights to them as well as creating printers for this project we have here.

If you remember I was working on a project where we are getting rid of novell printers and moving to Win32 print servers. So we put groups of users in specific Groups and assign and ACL printers to them based on their location.

(in reply to killr0y)
 
 
Post #: 25
 
 Re: Setting folder permissions in WSH - 3/18/2005 4:11:24 AM   
  token

 

Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
Novell (LOL) =)

(in reply to killr0y)
 
 
Post #: 26
 
 Re: Setting folder permissions in WSH - 3/18/2005 4:45:21 AM   
  mbouchard


Posts: 1894
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
quote:
Originally posted by killr0y

quote:
Originally posted by mbouchard

Why do you need to call a bat from a script? What happens when you call the script from your script?



Well, at the time I didn't know how to stop Shell.Run from going on to the next line without waiting for the command to finish processing... I know how to do it now, and I'll probably change it when I have time!


Ahh, ok, was just wondering.

(in reply to killr0y)
 
 
Post #: 27
 
 
Page:  <<   < prev  1 [2]
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Re: Setting folder permissions in WSH Page: <<   < prev  1 [2]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts