General discussion

Locked

Please Analyze This Script for me

By aspiring_one ·
My assignment is to take over scripting for our NT 4.0 network and I have no idea what any of the following means. I do know that the script doesn't execute on every login. It's supposed to only be run once when setting up a machine for a new network user.

@echo off
del c:\profile.prf > nul
echo checking / creating c:\my documents\exchange
c:
cd "c:\my documents"

md exchange
@echo
net use v: /d /yes > nul
net use v: \\server1\scripts > nul
v:
v:\perl.exe profile.pl

echo invoking newprof.exe, using c:\profile.prf
@echo
v:\newprof.exe -p c:\profile.prf -s -z
net use v: /d /yes > nul
@echo
echo done

Please email me directly if more space is needed in your explanation. Sorry I don't have more points to give.

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Please Analyze This Script for me

by TimeCube In reply to Please Analyze This Scrip ...

@echo off -turns echo off
del c:\profile.prf > nul - deletes existing profile
echo checking / creating c:\my documents\exchange
c:
cd "c:\my documents"

md exchange -creates an exchange dir in c:\My Documents
@echo
net use v: /d /yes > nul
net use v: \\server1\scripts > nul
v:
v:\perl.exe profile.pl -calling perl script (to create new profile?)

echo invoking newprof.exe, using c:\profile.prf
@echo
v:\newprof.exe -p c:\profile.prf -s -z
net use v: /d /yes > nul -creates profile on the server
@echo
echo done

Collapse -

Please Analyze This Script for me

by aspiring_one In reply to Please Analyze This Scrip ...
Collapse -

Please Analyze This Script for me

by mwb In reply to Please Analyze This Scrip ...

1. Turns off command line showing while executing
2. delete the prf file and supress the output (2>nul will supress errors)
3. writing that line to the user console.
5. change to that dir
7. make exchange dir
8-9. delete mapping v: if it existsand then map it again.
11. run a pearl script that must build an outlook profile.
15. create a new profile using c:\profile.prf as a template.
16. delete drive mapping.

This script creates a new Outlook profile for a user that does not have one. Otherwise you would have to visit their PC and enter info like where the exchange server is and what their mailbox name is. My guess is that the Pearl part inserts the user's username into a template prf file for newprof to use. The template prf files are not really templates because they need a specific username to work.

Hope this helps.

Best scripting book in the world -> "Windows NT Shell Scripting" by Tim Hill

Collapse -

Please Analyze This Script for me

by aspiring_one In reply to Please Analyze This Scrip ...
Back to Windows Forum
4 total posts (Page 1 of 1)  

Operating Systems Forums