+ Post New Thread
Results 1 to 5 of 5
Windows Server 2000/2003 Thread, Amend Bat file for students in Technical; Hi, I'm new to all this techie stuff but I have to learn fast so I'm hoping some can offer ...
  1. #1

    Join Date
    Mar 2011
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question Amend Bat file for students

    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

    esign

    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

  2. #2

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    372
    Thanked 544 Times in 507 Posts
    Rep Power
    184
    Quote Originally Posted by noHope View Post
    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

  3. #3

    Join Date
    Mar 2011
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks Steve for your reply; the GPO restricts their access to the C drive.

  4. #4

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,376
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    Quote Originally Posted by noHope View Post
    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.

  5. #5

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    372
    Thanked 544 Times in 507 Posts
    Rep Power
    184
    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
    Last edited by Steve21; 22nd March 2011 at 01:42 PM.



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 9
    Last Post: 12th February 2011, 05:18 PM
  2. Sims permissions bat file
    By ful56_uk in forum MIS Systems
    Replies: 21
    Last Post: 24th April 2010, 09:53 PM
  3. Bat file coding
    By tommccann in forum Windows
    Replies: 5
    Last Post: 31st March 2010, 12:41 PM
  4. .bat file clear old files
    By T_Noble in forum Coding
    Replies: 3
    Last Post: 20th January 2010, 01:03 PM
  5. BAT File issue
    By Danny159 in forum Windows Vista
    Replies: 2
    Last Post: 14th March 2009, 02:54 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •