Hi, I'm new to all this techie stuff but I have to learn fast so I'm hoping some can offer some advise on a minor problem I have currently.
I have a .Bat file that needs to be changed to allow certain students to have access a folder on the C drive.
Now I haven't got a clue to write so can someone please explain what I need to do; I've placed the current .bat file below.
REM ** DEFAULT STUDENT USER PROFILE **
net use /persistent:no >nul
net use h: /home
net use p: \\server1\allusers
Rem *** Printer Conections *****
Rem *** to connect only local Printer ****
Con2prt /f >nul
if NOT EXIST c:\A4.PC goto A5
con2prt /cd "\\server1\A4"
if NOT EXIST c:\A5.PC goto A6
con2prt /cd "\\server1\A5"
if NOT EXIST c:\A6.PC goto A9
con2prt /cd "\\server1\A6"
if NOT EXIST c:\A9.PC goto B23
con2prt /cd "\\server1\A9"
if NOT EXIST c:\B23.PC goto C31
con2prt /cd "\\server1\B23"
if NOT EXIST c:\C30.PC goto C40
con2prt /cd "\\server1\C30"
if NOT EXIST c:\C40.PC goto Library
con2prt /cd "\\server1\C40"
if NOT EXIST c:\Library.PC goto Design
con2prt /cd "\\server1\library"
if NOT EXIST c:\Design.PC goto Resource
con2prt /cd "\\server1\Design_Tech"
if NOT EXIST c:\resource.PC goto English
con2prt /cd "\\server1\Resource_Centre"
if NOT EXIST c:\A10.PC goto printerOK
con2prt /cd "\\server1\English"
All I need is for certain users called 'artmovies' to have access to the following path: c:\Program Files\Adobe\Adobe Premiere Elements 8.0\
I also need them to have access to the P Drive and lastly is it possible for the script to only work on certain machines called 'art1', 'art2', 'art3' etc.
Thanks in advance
Thanks Steve for your reply; the GPO restricts their access to the C drive.
Well unless I'm missing something obvious, no bat file will do what you want then? :P
The BAT will only be able to access what they can as it's run as their user. Even if C is hidden, they still need access/permisson
What's the actual reason you want them to be able to access the Folder in the first place? If it's a program can't you create a shortcut to it?
* Edit- Seems I was beaten in my typing speed!!!
Last edited by Steve21; 22nd March 2011 at 01:42 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)