Jump to content

Recommended Posts

Posted

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.

 

 

====Code=====

 

@echo off

 

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"

Goto PrinterOK

 

:A5

 

 

 

if NOT EXIST c:\A5.PC goto A6

 

con2prt /cd "\\server1\A5"

Goto PrinterOK

 

:A6

 

 

if NOT EXIST c:\A6.PC goto A9

 

con2prt /cd "\\server1\A6"

Goto PrinterOK

 

:A9

 

if NOT EXIST c:\A9.PC goto B23

 

con2prt /cd "\\server1\A9"

Goto PrinterOK

 

:B23

 

if NOT EXIST c:\B23.PC goto C31

 

con2prt /cd "\\server1\B23"

Goto PrinterOK

 

:C31

 

if NOT EXIST c:\C30.PC goto C40

 

con2prt /cd "\\server1\C30"

Goto PrinterOK

 

:C40

 

if NOT EXIST c:\C40.PC goto Library

 

con2prt /cd "\\server1\C40"

Goto PrinterOK

 

:Library

 

if NOT EXIST c:\Library.PC goto Design

 

con2prt /cd "\\server1\library"

Goto PrinterOK

 

:Design

 

if NOT EXIST c:\Design.PC goto Resource

 

con2prt /cd "\\server1\Design_Tech"

Goto PrinterOK

 

:Resource

 

if NOT EXIST c:\resource.PC goto English

 

con2prt /cd "\\server1\Resource_Centre"

Goto PrinterOK

 

:English

 

 

if NOT EXIST c:\A10.PC goto printerOK

 

con2prt /cd "\\server1\English"

Goto PrinterOK

 

 

:PrinterOK

 

 

====End Code=====

 

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

Posted
I have a .Bat file that needs to be changed to allow certain students to have access a folder on the C drive.

 

Can they view C in the first place though, or is it restricted by GPO etc etc?

 

Steve

Posted
Thanks Steve for your reply; the GPO restricts their access to the C drive.

 

In that case you need to remove the rescriction in GPO.

 

Or you can give student the permissions to the path you specified above.

Posted (edited)

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

 

Steve

Edited by Steve21

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...